From 2d3490c047d83399dd565448db719a0882efe5f2 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 19 Oct 2023 16:16:43 -0300 Subject: [PATCH] refactor(types): change isComponent property to is_component in FlowType and NodeType to follow naming convention refactor(utils): change isComponent property to is_component in createFlowComponent function to match updated naming convention --- src/frontend/src/types/flow/index.ts | 2 +- src/frontend/src/utils/reactflowUtils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/types/flow/index.ts b/src/frontend/src/types/flow/index.ts index 1291b83ce..b61fd1ba2 100644 --- a/src/frontend/src/types/flow/index.ts +++ b/src/frontend/src/types/flow/index.ts @@ -7,7 +7,7 @@ export type FlowType = { data: ReactFlowJsonObject | null; description: string; style?: FlowStyleType; - isComponent?: boolean; + is_component?: boolean; }; export type NodeType = { id: string; diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 16ea322ba..3f26d8098 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -1081,7 +1081,7 @@ export function createFlowComponent(nodeData: NodeDataType): FlowType { description: nodeData.node?.description || "", name: nodeData.node?.display_name || nodeData.type || "", id: nodeData.id || "", - isComponent: true, + is_component: true, }; return flowNode; }