Skip to content

Commit 4edd35d

Browse files
committed
Lint
1 parent fddc1cf commit 4edd35d

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
) {

apps/sim/stores/workflows/server-utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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,

apps/sim/stores/workflows/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)