From 8c8d9f59aaad34fe9b5beddfa30ebd6690c13d5b Mon Sep 17 00:00:00 2001 From: rashidakanchwala Date: Thu, 14 Nov 2024 11:05:18 +0000 Subject: [PATCH] done Signed-off-by: rashidakanchwala --- src/components/node-list-tree/node-list-tree.js | 1 - src/store/normalize-data.js | 14 ++------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/components/node-list-tree/node-list-tree.js b/src/components/node-list-tree/node-list-tree.js index 97486df14..48b702f3e 100644 --- a/src/components/node-list-tree/node-list-tree.js +++ b/src/components/node-list-tree/node-list-tree.js @@ -100,7 +100,6 @@ const TreeListProvider = ({ nodeSelected, modularPipelinesSearchResult, nodeDisabledViaModularPipeline, - searchValue, modularPipelinesTree, onItemChange, onItemMouseEnter, diff --git a/src/store/normalize-data.js b/src/store/normalize-data.js index 4278889cf..173f18c4f 100644 --- a/src/store/normalize-data.js +++ b/src/store/normalize-data.js @@ -289,17 +289,8 @@ const normalizeData = (data, expandAllPipelines) => { return state; } - if (data.nodes) { - console.log(data.nodes); - data.nodes.sort((a, b) => a.id.localeCompare(b.id)); - data.nodes.forEach(addNode(state)); - } - - if (data.edges) { - console.log(data.edges); - data.edges.sort((a, b) => a.id.localeCompare(b.id)); - data.edges.forEach(addEdge(state)); - } + data.nodes.forEach(addNode(state)); + data.edges.forEach(addEdge(state)); if (data.pipelines) { data.pipelines.forEach(addPipeline(state)); @@ -338,7 +329,6 @@ const normalizeData = (data, expandAllPipelines) => { data.tags.forEach(addTag(state)); } if (data.layers) { - data.layers.sort((a, b) => a.id.localeCompare(b.id)); data.layers.forEach(addLayer(state)); }