Skip to content

Commit d829ab2

Browse files
Adam GoughAdam Gough
authored andcommitted
removed comments
1 parent 46d23bd commit d829ab2

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

apps/sim/app/w/[id]/components/control-bar/components/deployment-controls/deployment-controls.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,30 @@ export function DeploymentControls({
2626
isLoadingDeployedState,
2727
refetchDeployedState,
2828
}: DeploymentControlsProps) {
29-
// Use workflow-specific deployment status
3029
const deploymentStatus = useWorkflowRegistry((state) =>
3130
state.getWorkflowDeploymentStatus(activeWorkflowId)
3231
)
3332
const isDeployed = deploymentStatus?.isDeployed || false
3433

35-
// Trust the parent's change detection - it has the authoritative comparison logic
3634
const workflowNeedsRedeployment = needsRedeployment
3735

3836
const [isDeploying, _setIsDeploying] = useState(false)
3937
const [isModalOpen, setIsModalOpen] = useState(false)
4038

41-
// Track the last seen workflow ID
4239
const lastWorkflowIdRef = useRef<string | null>(null)
4340

44-
// Update last seen workflow ID
4541
useEffect(() => {
4642
if (activeWorkflowId !== lastWorkflowIdRef.current) {
4743
lastWorkflowIdRef.current = activeWorkflowId
4844
}
4945
}, [activeWorkflowId])
5046

51-
// Refetch deployed state wrapper
5247
const refetchWithErrorHandling = async () => {
5348
if (!activeWorkflowId) return
5449

5550
try {
5651
await refetchDeployedState()
57-
} catch (error) {
58-
// Silent error handling
59-
}
52+
} catch (error) {}
6053
}
6154

6255
return (

0 commit comments

Comments
 (0)