Skip to content

Commit

Permalink
refactor: Unified showmode invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Dec 17, 2024
1 parent c2780c0 commit 96943e2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const TableNode: FC<Props> = ({ data }) => {
const { relationships } = useDBStructureStore()
const {
active: { tableName },
showMode,
} = useUserEditingStore()

const isActive = tableName === data.table.name
Expand All @@ -29,8 +30,6 @@ export const TableNode: FC<Props> = ({ data }) => {
data.isRelated ||
isRelatedToTable(relationships, data.table.name, tableName)

const { showMode } = useUserEditingStore()

const handleClick = useCallback(() => {
updateActiveTableName(data.table.name)
}, [data])
Expand Down

0 comments on commit 96943e2

Please sign in to comment.