File tree Expand file tree Collapse file tree
lib/copilot/tools/server/workflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ function applyOperationsToWorkflowState(
481481 } )
482482
483483 if (
484- Object . prototype . hasOwnProperty . call ( params . inputs , 'triggerConfig' ) &&
484+ Object . hasOwn ( params . inputs , 'triggerConfig' ) &&
485485 block . subBlocks . triggerConfig &&
486486 typeof block . subBlocks . triggerConfig . value === 'object'
487487 ) {
Original file line number Diff line number Diff line change @@ -72,11 +72,7 @@ export function mergeSubblockState(
7272 // Add any values that exist in the provided values but aren't in the block structure
7373 // This handles cases where block config has been updated but values still exist
7474 Object . entries ( blockValues ) . forEach ( ( [ subBlockId , value ] ) => {
75- if (
76- ! mergedSubBlocks [ subBlockId ] &&
77- value !== null &&
78- value !== undefined
79- ) {
75+ if ( ! mergedSubBlocks [ subBlockId ] && value !== null && value !== undefined ) {
8076 // Create a minimal subblock structure
8177 mergedSubBlocks [ subBlockId ] = {
8278 id : subBlockId ,
Original file line number Diff line number Diff line change @@ -116,11 +116,7 @@ export function mergeSubblockState(
116116 // Add any values that exist in the store but aren't in the block structure
117117 // This handles cases where block config has been updated but values still exist
118118 Object . entries ( blockValues ) . forEach ( ( [ subBlockId , value ] ) => {
119- if (
120- ! mergedSubBlocks [ subBlockId ] &&
121- value !== null &&
122- value !== undefined
123- ) {
119+ if ( ! mergedSubBlocks [ subBlockId ] && value !== null && value !== undefined ) {
124120 // Create a minimal subblock structure
125121 mergedSubBlocks [ subBlockId ] = {
126122 id : subBlockId ,
You can’t perform that action at this time.
0 commit comments