We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fd516c commit 60ebe73Copy full SHA for 60ebe73
1 file changed
apps/sim/lib/copilot/tools/server/workflow/edit-workflow/builders.ts
@@ -130,6 +130,18 @@ export function createBlockFromParams(
130
}
131
})
132
133
+ const canonicalIndex = buildCanonicalIndex(blockConfig.subBlocks)
134
+ const defaultModes: Record<string, 'basic' | 'advanced'> = {}
135
+ for (const group of Object.values(canonicalIndex.groupsById)) {
136
+ if (isCanonicalPair(group)) {
137
+ defaultModes[group.canonicalId] = 'basic'
138
+ }
139
140
+ if (Object.keys(defaultModes).length > 0) {
141
+ if (!blockState.data) blockState.data = {}
142
+ blockState.data.canonicalModes = defaultModes
143
144
+
145
if (validatedInputs) {
146
updateCanonicalModesForInputs(blockState, Object.keys(validatedInputs), blockConfig)
147
0 commit comments