Skip to content

Commit 7c5a6bd

Browse files
committed
fix(workflow-changes): change detection logic divergence
1 parent 42020c3 commit 7c5a6bd

File tree

1 file changed

+5
-10
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/hooks

1 file changed

+5
-10
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/hooks/use-change-detection.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,12 @@ export function useChangeDetection({
5757
}
5858
}
5959

60-
if (block.triggerMode) {
61-
const triggerConfigValue = blockSubValues?.triggerConfig
62-
if (
63-
triggerConfigValue &&
64-
typeof triggerConfigValue === 'object' &&
65-
!subBlocks.triggerConfig
66-
) {
67-
subBlocks.triggerConfig = {
68-
id: 'triggerConfig',
60+
for (const [subId, value] of Object.entries(blockSubValues)) {
61+
if (!subBlocks[subId] && value !== null && value !== undefined) {
62+
subBlocks[subId] = {
63+
id: subId,
6964
type: 'short-input',
70-
value: triggerConfigValue,
65+
value,
7166
}
7267
}
7368
}

0 commit comments

Comments
 (0)