From ffada7c7dc02dbc0bf316d2f704f32cabfd6f569 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 11 Apr 2025 10:09:06 +0800 Subject: [PATCH] fix: hide open in browser when not available --- apps/desktop/src/renderer/src/hooks/biz/useEntryActions.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/desktop/src/renderer/src/hooks/biz/useEntryActions.tsx b/apps/desktop/src/renderer/src/hooks/biz/useEntryActions.tsx index fbdc44319..dfd21c398 100644 --- a/apps/desktop/src/renderer/src/hooks/biz/useEntryActions.tsx +++ b/apps/desktop/src/renderer/src/hooks/biz/useEntryActions.tsx @@ -158,6 +158,7 @@ export const useEntryActions = ({ entryId, view }: { entryId: string; view?: Fee }, { id: COMMAND_ID.entry.openInBrowser, + hide: !entry?.entries.url, onClick: runCmdFn(COMMAND_ID.entry.openInBrowser, [{ entryId }]), }, {