Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

solve issue with multiple render of tables (#824)

Guy Ben-Aharon2fdad2344c61
diff --git a/src/pages/editor-page/canvas/canvas.tsx b/src/pages/editor-page/canvas/canvas.tsx
index a9655da0..383dffd4 100644
--- a/src/pages/editor-page/canvas/canvas.tsx
+++ b/src/pages/editor-page/canvas/canvas.tsx
@@ -464,10 +464,6 @@ export const Canvas: React.FC<CanvasProps> = ({ initialTables }) => {
);
useEffect(() => {
- if (areas.length == 0) {
- return;
- }
-
const checkParentAreas = debounce(() => {
const updatedTables = updateTablesParentAreas(tables, areas);
const needsUpdate: Array<{