From 4ed6a70350693f1f3f05a8efe9451e729964a05d Mon Sep 17 00:00:00 2001 From: Adam Gough Date: Thu, 29 May 2025 17:03:38 -0700 Subject: [PATCH] removed forceRefetch logic --- apps/sim/app/w/[id]/components/control-bar/control-bar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sim/app/w/[id]/components/control-bar/control-bar.tsx b/apps/sim/app/w/[id]/components/control-bar/control-bar.tsx index 5ce3a754c6..be618a73e4 100644 --- a/apps/sim/app/w/[id]/components/control-bar/control-bar.tsx +++ b/apps/sim/app/w/[id]/components/control-bar/control-bar.tsx @@ -198,14 +198,14 @@ export function ControlBar() { * Fetches the deployed state of the workflow from the server * This is the single source of truth for deployed workflow state */ - const fetchDeployedState = async (options = { forceRefetch: false }) => { + const fetchDeployedState = async () => { if (!activeWorkflowId) { setDeployedState(null) return } - // Skip fetching if not deployed unless forcing a refetch - if (!isDeployed && !options.forceRefetch) { + // Skip fetching if not deployed + if (!isDeployed) { setDeployedState(null) return }