From ec047bb1812b847a4a85aaa831925691be75b355 Mon Sep 17 00:00:00 2001
From: Sjoerd <svink@graphpolaris.com>
Date: Tue, 17 Sep 2024 08:06:07 +0000
Subject: [PATCH] fix: filter out neo4j bloom pils in schema

---
 libs/shared/lib/schema/panel/Schema.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libs/shared/lib/schema/panel/Schema.tsx b/libs/shared/lib/schema/panel/Schema.tsx
index aae59bad9..150a546d1 100644
--- a/libs/shared/lib/schema/panel/Schema.tsx
+++ b/libs/shared/lib/schema/panel/Schema.tsx
@@ -98,6 +98,9 @@ export const Schema = (props: Props) => {
     await layout.current?.layout(expandedSchema, xy);
     const schemaFlow = schemaGraphology2Reactflow(expandedSchema, settings.connectionType, settings.animatedEdges);
 
+    schemaFlow.nodes = schemaFlow.nodes.filter((node) => !node.id.toLowerCase().includes('bloom'));
+    schemaFlow.edges = schemaFlow.edges.filter((edge) => !edge.id.toLowerCase().includes('bloom'));
+
     let nodesWithRef, edgesWithRef;
     if (!hasLayoutBeenRun) {
       nodesWithRef = schemaFlow.nodes.map((node) => {
@@ -263,10 +266,7 @@ export const Schema = (props: Props) => {
         </>
       }
     >
-      <div
-        className="schema-panel w-full h-full flex flex-col justify-between"
-        ref={reactFlowRef}
-      >
+      <div className="schema-panel w-full h-full flex flex-col justify-between" ref={reactFlowRef}>
         {nodes.length === 0 ? (
           <p className="m-3 text-xl font-bold">No Elements</p>
         ) : (
-- 
GitLab