From 9d1fbc68f0a0105e44718d72e2faa6874b3932e4 Mon Sep 17 00:00:00 2001 From: Nicholas Nelson Date: Thu, 2 Nov 2023 12:32:16 -0700 Subject: [PATCH] Hide disabled actions on GitNode context menus --- packages/renderer/src/components/GitGraph/ContextMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/renderer/src/components/GitGraph/ContextMenu.tsx b/packages/renderer/src/components/GitGraph/ContextMenu.tsx index dc01b795..a6089036 100644 --- a/packages/renderer/src/components/GitGraph/ContextMenu.tsx +++ b/packages/renderer/src/components/GitGraph/ContextMenu.tsx @@ -231,7 +231,7 @@ const ContextMenu = ({ disabled: false, onClick: () => abort(branch), })), - ]; + ].filter(action => action.disabled !== true); return open ? (