Skip to content

Commit 1814aef

Browse files
committed
fix error message
1 parent c07dbfa commit 1814aef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/utils/workflow-canvas-helpers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ export function validateTriggerPaste(
4747

4848
const singleInstanceIssue = TriggerUtils.getSingleInstanceBlockIssue(existingBlocks, block.type)
4949
if (singleInstanceIssue) {
50-
const actionText = action === 'paste' ? 'paste' : 'duplicate'
51-
const message = `A workflow can only have one ${singleInstanceIssue.blockName} block. ${action === 'paste' ? 'Please remove the existing one before pasting.' : `Cannot ${actionText}.`}`
50+
const message = `A workflow can only have one ${singleInstanceIssue.blockName} block. ${action === 'paste' ? 'Please remove the existing one before pasting.' : 'Cannot duplicate.'}`
5251
return { isValid: false, message }
5352
}
5453
}

0 commit comments

Comments
 (0)