Skip to content

Commit bb721c9

Browse files
committed
fix(trigger): resolve dependsOn for trigger-mode subblocks sharing canonical groups with block subblocks
1 parent 266bc21 commit bb721c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/sim/lib/workflows/subblocks/visibility.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ export function resolveDependencyValue(
284284

285285
const { basicValue, advancedValue } = getCanonicalValues(group, values)
286286
const mode = resolveCanonicalMode(group, values, overrides)
287-
if (mode === 'advanced') return advancedValue ?? basicValue
288-
return basicValue ?? advancedValue
287+
const canonicalResult =
288+
mode === 'advanced' ? (advancedValue ?? basicValue) : (basicValue ?? advancedValue)
289+
return canonicalResult ?? values[dependencyKey]
289290
}
290291

291292
/**

0 commit comments

Comments
 (0)