mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: only open trash item if it is a note
This commit is contained in:
committed by
Abdullah Atta
parent
860e97c97d
commit
84a687d69d
@@ -51,7 +51,8 @@ function TrashItem({ item, index, date }) {
|
||||
}
|
||||
menu={{ items: menuItems, extraData: { item } }}
|
||||
onClick={() => {
|
||||
hashNavigate(`/notes/${item.id}/edit`, { replace: true });
|
||||
if (item.itemType === "note")
|
||||
hashNavigate(`/notes/${item.id}/edit`, { replace: true });
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user