removed direct attribution of official attribute

This commit is contained in:
Lucas Oliveira 2024-01-31 10:54:47 +01:00
commit 30709221ef

View file

@ -1161,13 +1161,12 @@ export function createFlowComponent(
nodeData: NodeDataType,
version: string
): FlowType {
nodeData.node!.official = false;
const flowNode: FlowType = {
data: {
edges: [],
nodes: [
{
data: nodeData,
data: {...nodeData, node: {...nodeData.node, official: false}},
id: nodeData.id,
position: { x: 0, y: 0 },
type: "genericNode",