From 52cf1f1142ee748817e1822016d7080e8e25595b Mon Sep 17 00:00:00 2001 From: yamatsum Date: Sun, 9 Feb 2025 00:12:42 +0900 Subject: [PATCH] fix --- .../ERDRenderer/ERDContent/useInitialAutoLayout.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/useInitialAutoLayout.ts b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/useInitialAutoLayout.ts index 746e166dd..0085016d7 100644 --- a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/useInitialAutoLayout.ts +++ b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/useInitialAutoLayout.ts @@ -24,10 +24,8 @@ export const useInitialAutoLayout = ( .filter((node) => node.type === 'table') .some((node) => node.measured) || (nodes.filter((node) => node.type === 'table').length === 0 && - nodes.find((node) => node.type === 'nonRelatedTableGroup')?.position - .x === 0 && - nodes.find((node) => node.type === 'nonRelatedTableGroup')?.position - .y === 0), + nodes.find((node) => node.type === 'nonRelatedTableGroup')?.hidden === + undefined), [nodes], ) const { getEdges } = useReactFlow()