Skip to content
Snippets Groups Projects

fix: filter out neo4j bloom pils in schema

Merged Sjoerd requested to merge fix/bloomFilter into main
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -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>
) : (
Loading