From b94b7860d9e902aed2a07da12d312bbdfd675b91 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 21 Jan 2026 14:07:19 +0800 Subject: [PATCH] chore: remove useless void --- web/app/components/workflow-app/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow-app/index.tsx b/web/app/components/workflow-app/index.tsx index 8ad50f0a73..bcba90307a 100644 --- a/web/app/components/workflow-app/index.tsx +++ b/web/app/components/workflow-app/index.tsx @@ -72,19 +72,19 @@ const WorkflowViewContent = ({ const handleViewTypeChange = useCallback((type: ViewType) => { if (viewType === ViewType.graph && type !== viewType) - pendingSyncRef.current = syncWorkflowDraftImmediately(true).catch(() => {}) + pendingSyncRef.current = syncWorkflowDraftImmediately(true).catch(() => { }) doSetViewType(type) if (type === ViewType.graph) { const pending = pendingSyncRef.current if (pending) { pending.finally(() => { - void refreshGraph() + refreshGraph() }) pendingSyncRef.current = null } else { - void refreshGraph() + refreshGraph() } } }, [doSetViewType, refreshGraph, syncWorkflowDraftImmediately, viewType])