Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
Signed-off-by: rashidakanchwala <[email protected]>
  • Loading branch information
rashidakanchwala committed Nov 14, 2024
1 parent f469ccc commit 8c8d9f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/components/node-list-tree/node-list-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ const TreeListProvider = ({
nodeSelected,
modularPipelinesSearchResult,
nodeDisabledViaModularPipeline,
searchValue,
modularPipelinesTree,
onItemChange,
onItemMouseEnter,
Expand Down
14 changes: 2 additions & 12 deletions src/store/normalize-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
}

Expand Down

0 comments on commit 8c8d9f5

Please sign in to comment.