Skip to content

Commit

Permalink
refactor: Remove useActiveTableNameFromUrl hook to streamline ERDCont…
Browse files Browse the repository at this point in the history
…ent component
  • Loading branch information
MH4GF committed Dec 16, 2024
1 parent 6abd0e1 commit 896111e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import styles from './ERDContent.module.css'
import { ERDContentProvider, useERDContentContext } from './ERDContentContext'
import { RelationshipEdge } from './RelationshipEdge'
import { TableNode } from './TableNode'
import { useActiveTableNameFromUrl } from './useActiveTableNameFromUrl'
import { useFitViewWhenActiveTableChange } from './useFitViewWhenActiveTableChange'
import { useInitialAutoLayout } from './useInitialAutoLayout'

Expand Down Expand Up @@ -72,7 +71,6 @@ export const ERDContentInner: FC<Props> = ({
}, [_nodes, _edges, setNodes, setEdges])

useInitialAutoLayout()
useActiveTableNameFromUrl()
useFitViewWhenActiveTableChange(
enabledFeatures?.fitViewWhenActiveTableChange ?? true,
)
Expand Down

This file was deleted.

0 comments on commit 896111e

Please sign in to comment.