Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

validate error view before premium

AykutSarac4a6f387b01fc
diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsx
index 22341a31..433a4ffc 100644
--- a/src/components/Graph/index.tsx
+++ b/src/components/Graph/index.tsx
@@ -98,10 +98,12 @@ const GraphComponent = ({ isWidget = false, openModal, setSelectedNode }: GraphP
if (input) input.blur();
}, []);
+
+ if (nodes.length > 8_000) return <ErrorView />;
+
if (nodes.length > 1_000 && !isWidget) {
if (!isPremium()) return <PremiumView />;
}
- if (nodes.length > 8_000) return <ErrorView />;
return (
<StyledEditorWrapper isWidget={isWidget} onContextMenu={e => e.preventDefault()}>