fix: fixed bug where collection was not getting created

This commit is contained in:
Anoop M D 2022-10-16 14:40:43 +05:30
parent d8f58aeb0d
commit 6380797f92

View File

@ -56,7 +56,7 @@ export const collectionsSlice = createSlice({
const collection = action.payload;
collapseCollection(collection);
addDepth(collection.items);
if(!collectionUids.includes(c.uid)) {
if(!collectionUids.includes(collection.uid)) {
state.collections.push(collection);
}
},