Changeset View
Changeset View
Standalone View
Standalone View
lib/reducers/thread-reducer.js
Show First 20 Lines • Show All 467 Lines • ▼ Show 20 Lines | ) { | ||||
); | ); | ||||
return { | return { | ||||
threadStore: updatedThreadStore, | threadStore: updatedThreadStore, | ||||
newThreadInconsistencies: [], | newThreadInconsistencies: [], | ||||
threadStoreOperations, | threadStoreOperations, | ||||
}; | }; | ||||
} else if (action.type === setClientDBStoreActionType) { | } else if (action.type === setClientDBStoreActionType) { | ||||
return { | return { | ||||
threadStore: action.payload.threadStore, | threadStore: action.payload.threadStore ?? state, | ||||
newThreadInconsistencies: [], | newThreadInconsistencies: [], | ||||
threadStoreOperations: [], | threadStoreOperations: [], | ||||
}; | }; | ||||
} | } | ||||
return { | return { | ||||
threadStore: state, | threadStore: state, | ||||
newThreadInconsistencies: [], | newThreadInconsistencies: [], | ||||
threadStoreOperations: [], | threadStoreOperations: [], | ||||
Show All 26 Lines |