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:
parent
2963bbdf53
commit
2d3490c047
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ export type FlowType = {
|
|||
data: ReactFlowJsonObject | null;
|
||||
description: string;
|
||||
style?: FlowStyleType;
|
||||
isComponent?: boolean;
|
||||
is_component?: boolean;
|
||||
};
|
||||
export type NodeType = {
|
||||
id: string;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue