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
This commit is contained in:
anovazzi1 2023-10-19 16:16:43 -03:00
commit 2d3490c047
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ export type FlowType = {
data: ReactFlowJsonObject | null;
description: string;
style?: FlowStyleType;
isComponent?: boolean;
is_component?: boolean;
};
export type NodeType = {
id: string;

View file

@ -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;
}