Store: fix cache collection storage.

master
Tom Hacohen 4 years ago
parent b39f100bdb
commit 7f85d304a8

@ -68,14 +68,18 @@ export const setCacheCollection = createAction(
return Etebase.toBase64(await colMgr.cacheSave(col));
},
(_colMgr: Etebase.CollectionManager, col: Etebase.Collection) => {
return col.uid;
return {
colUid: col.uid,
};
}
);
export const unsetCacheCollection = createAction(
"UNSET_CACHE_COLLECTION",
(_colMgr: Etebase.CollectionManager, colUid: string) => {
return colUid;
return {
colUid,
};
}
);

Loading…
Cancel
Save