Skip to content

Commit 90963bc

Browse files
committed
fix
1 parent 78013e7 commit 90963bc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/mcp/mcp.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ interface McpDeployProps {
5454
workflowDescription?: string | null
5555
isDeployed: boolean
5656
deployedState?: WorkflowState | null
57+
isLoadingDeployedState: boolean
5758
onAddedToServer?: () => void
5859
onSubmittingChange?: (submitting: boolean) => void
5960
onCanSaveChange?: (canSave: boolean) => void
@@ -123,6 +124,7 @@ export function McpDeploy({
123124
workflowDescription,
124125
isDeployed,
125126
deployedState,
127+
isLoadingDeployedState,
126128
onAddedToServer,
127129
onSubmittingChange,
128130
onCanSaveChange,
@@ -138,7 +140,7 @@ export function McpDeploy({
138140
const updateToolMutation = useUpdateWorkflowMcpTool()
139141

140142
// The MCP tool is built from the DEPLOYED Start block and the server materializes overrides
141-
// against it; the form is gated on deployedState below, so it works purely off the deployed
143+
// against it; the form waits for the deployed-state load below, so it works off the deployed
142144
// snapshot (never the live editor), keeping its defaults and override classification in lockstep
143145
// with what MCP clients receive.
144146
const inputFormat = useMemo((): NormalizedField[] => {
@@ -466,7 +468,7 @@ export function McpDeploy({
466468
)
467469
}
468470

469-
if (isLoadingServers || !deployedState) {
471+
if (isLoadingServers || (isLoadingDeployedState && !deployedState)) {
470472
return (
471473
<div className='-mx-1 space-y-4 px-1'>
472474
<div className='space-y-3'>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/deploy-modal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ export function DeployModal({
670670
workflowDescription={workflowMetadata?.description}
671671
isDeployed={isDeployed}
672672
deployedState={deployedState}
673+
isLoadingDeployedState={isLoadingDeployedState}
673674
onSubmittingChange={setMcpToolSubmitting}
674675
onCanSaveChange={setMcpToolCanSave}
675676
onActiveServerChange={setMcpActiveServerId}

0 commit comments

Comments
 (0)