File tree Expand file tree Collapse file tree
apps/sim/app/w/[id]/components/control-bar/components/deployment-controls Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments