fix: correct visibility logic for entry read command

This commit is contained in:
lawvs
2025-01-02 00:48:15 +08:00
parent 71f3be0a29
commit bdad091599
@@ -191,7 +191,7 @@ export const useEntryActions = ({ entryId, view }: { entryId: string; view?: Fee
{
id: COMMAND_ID.entry.read,
onClick: runCmdFn(COMMAND_ID.entry.read, [{ entryId }]),
hide: !hasEntry || !entry.read || !!entry.collections || !!inList,
hide: !hasEntry || entry.read || !!entry.collections || !!inList,
shortcut: shortcuts.entry.toggleRead.key,
},
{