ui: use seperate cache key in homework

This commit is contained in:
undefined committed 2024-10-23 21:10:47 +08:00
1 parent 9fbab01641
commit 25a24eda9d
2 files changed
+2 -4

No files matched your search

@@ -1,5 +1,5 @@
let cacheKey = `${UserContext._id}/${UiContext.pdoc.domainId}/${UiContext.pdoc.docId}`;
if (UiContext.tdoc?._id && UiContext.tdoc.rule !== 'homework') cacheKey += `@${UiContext.tdoc._id}`;
if (UiContext.tdoc?._id) cacheKey += `@${UiContext.tdoc._id}`;
// TODO switch to indexeddb
export default function reducer(state = {