diff --git a/renderer/components/Sidebar/Collections/Collection/CollectionItem/index.js b/renderer/components/Sidebar/Collections/Collection/CollectionItem/index.js index 81f77747c..b6540ef1b 100644 --- a/renderer/components/Sidebar/Collections/Collection/CollectionItem/index.js +++ b/renderer/components/Sidebar/Collections/Collection/CollectionItem/index.js @@ -86,7 +86,7 @@ const CollectionItem = ({item, collectionUid}) => { }} >
- {item.items && item.items.length ? ( + {item.type === 'folder' ? ( ) : null}
diff --git a/renderer/providers/Store/reducer.js b/renderer/providers/Store/reducer.js index 9ba1ef0a0..e88184ca7 100644 --- a/renderer/providers/Store/reducer.js +++ b/renderer/providers/Store/reducer.js @@ -122,6 +122,7 @@ const reducer = (state, action) => { collection.items.push({ uid: nanoid(), name: action.folderName, + type: 'folder', items: [], // todo: this will be autoassigned depth: 1