diff --git a/apps/web/src/common/list-profiles.js b/apps/web/src/common/list-profiles.js index 1adab4ae4..f3c7804de 100644 --- a/apps/web/src/common/list-profiles.js +++ b/apps/web/src/common/list-profiles.js @@ -62,8 +62,8 @@ const TopicsProfile = createProfile( const TrashProfile = createProfile( (index, item) => , (item) => { - if (item.type === "note") return getNoteHeight(item); - else if (item.type === "notebook") return getNotebookHeight(item); + if (item.itemType === "note") return getNoteHeight(item); + else if (item.itemType === "notebook") return getNotebookHeight(item); }, Math.max(MAX_HEIGHTS.note, MAX_HEIGHTS.notebook) ); diff --git a/apps/web/src/views/trash.js b/apps/web/src/views/trash.js index 95f5ae292..bbffb5960 100644 --- a/apps/web/src/views/trash.js +++ b/apps/web/src/views/trash.js @@ -11,6 +11,7 @@ function Trash() { useEffect(() => store.refresh(), []); const items = useStore((store) => store.trash); const clearTrash = useStore((store) => store.clear); + console.log(items); return (