mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
fix(trigger): resolve dependsOn for trigger-mode subblocks sharing canonical groups with block subblocks
This commit is contained in:
@@ -284,8 +284,9 @@ export function resolveDependencyValue(
|
||||
|
||||
const { basicValue, advancedValue } = getCanonicalValues(group, values)
|
||||
const mode = resolveCanonicalMode(group, values, overrides)
|
||||
if (mode === 'advanced') return advancedValue ?? basicValue
|
||||
return basicValue ?? advancedValue
|
||||
const canonicalResult =
|
||||
mode === 'advanced' ? (advancedValue ?? basicValue) : (basicValue ?? advancedValue)
|
||||
return canonicalResult ?? values[dependencyKey]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user