From 5dd296f8457213e46550ac8deb97d1132c99da9c Mon Sep 17 00:00:00 2001 From: Yi Date: Fri, 16 Aug 2024 15:01:05 +0800 Subject: [PATCH] delete unnecessary dependency --- web/app/components/workflow/hooks/use-shortcuts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/hooks/use-shortcuts.ts b/web/app/components/workflow/hooks/use-shortcuts.ts index f126d4f3ed..9484f9c16e 100644 --- a/web/app/components/workflow/hooks/use-shortcuts.ts +++ b/web/app/components/workflow/hooks/use-shortcuts.ts @@ -46,7 +46,7 @@ export const useShortcuts = (): void => { const shouldHandleShortcut = useCallback((e: KeyboardEvent) => { const { showFeaturesPanel } = workflowStore.getState() return !showFeaturesPanel && !isEventTargetInputArea(e.target as HTMLElement) - }, [workflowStore, isEventTargetInputArea]) + }, [workflowStore]) useKeyPress(['delete', 'backspace'], (e) => { if (shouldHandleShortcut(e)) {