From 30709221efc98ff864571454720319275c797dfb Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 31 Jan 2024 10:54:47 +0100 Subject: [PATCH] removed direct attribution of official attribute --- src/frontend/src/utils/reactflowUtils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 297a18c88..e25d648dd 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -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",