移除可以与同一用户创建多个会话的特性

This commit is contained in:
masnn committed 2020-05-15 13:10:41 +08:00
1 parent d04628148f
commit 3c5fdb9032
16 files changed
+120 -118

No files matched your search

+1 -2
View File
@@ -15,8 +15,7 @@ export default function reducer(state = {
}
case 'SCRATCHPAD_RECORDS_PUSH': {
const { rdoc } = action.payload;
if (rdoc.uid !== UserContext.uid
|| rdoc.domain_id !== UserContext.domain
if (rdoc.uid !== UserContext._id
|| rdoc.pid !== Context.problemId
) {
return state;