From 7f85d304a87e3b958b0ac6bcddfc472050988a35 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 5 Aug 2020 17:21:57 +0300 Subject: [PATCH] Store: fix cache collection storage. --- src/store/actions.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/store/actions.ts b/src/store/actions.ts index 52b37f5..44dc236 100644 --- a/src/store/actions.ts +++ b/src/store/actions.ts @@ -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, + }; } );