From 4b57e7bd531e9bee42b4198ea7328ba32eefb5ce Mon Sep 17 00:00:00 2001 From: hjlarry Date: Thu, 15 Jan 2026 11:42:34 +0800 Subject: [PATCH] fix --- .../components/workflow-app/hooks/use-nodes-sync-draft.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/app/components/workflow-app/hooks/use-nodes-sync-draft.ts b/web/app/components/workflow-app/hooks/use-nodes-sync-draft.ts index beac3d327e..776e5b9f56 100644 --- a/web/app/components/workflow-app/hooks/use-nodes-sync-draft.ts +++ b/web/app/components/workflow-app/hooks/use-nodes-sync-draft.ts @@ -159,17 +159,13 @@ export const useNodesSyncDraft = () => { }) setSyncWorkflowDraftHash(res.hash) setDraftUpdatedAt(res.updated_at) - console.log('Leader successfully synced workflow draft') callback?.onSuccess?.() } catch (error: any) { - console.error('Leader failed to sync workflow draft:', error) if (error && error.json && !error.bodyUsed) { error.json().then((err: any) => { - if (err.code === 'draft_workflow_not_sync' && !notRefreshWhenSyncError) { - console.error('draft_workflow_not_sync', err) + if (err.code === 'draft_workflow_not_sync' && !notRefreshWhenSyncError) handleRefreshWorkflowDraft() - } }) } callback?.onError?.()