Skip to content

Commit

Permalink
📈 add select table logging for TableNode
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Dec 19, 2024
1 parent dc8818f commit 10af395
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { selectTableLogEvent } from '@/features/gtm/utils'
import { updateActiveTableName, useUserEditingActiveStore } from '@/stores'
import type { Relationships } from '@liam-hq/db-structure'
import {
Expand Down Expand Up @@ -75,8 +76,9 @@ export const ERDContentInner: FC<Props> = ({
)
useSyncHighlightsActiveTableChange()

const handleNodeClick = useCallback((nodeId: string) => {
updateActiveTableName(nodeId)
const handleNodeClick = useCallback((tableId: string) => {
updateActiveTableName(tableId)
selectTableLogEvent({ ref: 'mainArea', tableId })
}, [])

const handlePaneClick = useCallback(() => {
Expand Down

0 comments on commit 10af395

Please sign in to comment.