File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
apps/sim/lib/copilot/tools/server/workflow/edit-workflow Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,18 @@ export function createBlockFromParams(
130130 }
131131 } )
132132
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+
133145 if ( validatedInputs ) {
134146 updateCanonicalModesForInputs ( blockState , Object . keys ( validatedInputs ) , blockConfig )
135147 }
You can’t perform that action at this time.
0 commit comments