mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 12:41:45 +02:00
fix: only last trashed item being visible in trash
This commit is contained in:
@@ -62,8 +62,8 @@ const TopicsProfile = createProfile(
|
||||
const TrashProfile = createProfile(
|
||||
(index, item) => <TrashItem index={index} item={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)
|
||||
);
|
||||
|
||||
@@ -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 (
|
||||
<ListContainer
|
||||
type="trash"
|
||||
|
||||
Reference in New Issue
Block a user