Skip to content

Commit

Permalink
Update frontend/packages/erd-core/src/features/gtm/utils/openRelatedT…
Browse files Browse the repository at this point in the history
…ablesLogEvent.ts

Co-authored-by: Junki Saito <[email protected]>
  • Loading branch information
sasamuku and junkisai committed Dec 19, 2024
1 parent d3c0ffe commit a22e4a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { convertDBStructureToNodes } from '@/components/ERDRenderer/convertDBStructureToNodes'
import { OpenRelatedTablesLogEvent } from '@/features/gtm/utils'
import { openRelatedTablesLogEvent } from '@/features/gtm/utils'
import { updateActiveTableName, useDBStructureStore } from '@/stores'
import type { Table } from '@liam-hq/db-structure'
import { GotoIcon, IconButton } from '@liam-hq/ui'
Expand Down Expand Up @@ -30,7 +30,7 @@ export const RelatedTables: FC<Props> = ({ table }) => {
}))
})
updateActiveTableName(undefined)
OpenRelatedTablesLogEvent({
openRelatedTablesLogEvent({
tableId: table.name,
})
}, [nodes, setNodes, table.name])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type OpenRelatedTablesLogEvent = {
tableId: string
}

export const OpenRelatedTablesLogEvent = ({
export const openRelatedTablesLogEvent = ({
tableId,
}: OpenRelatedTablesLogEvent) => {
pushToDataLayer({
Expand Down

0 comments on commit a22e4a8

Please sign in to comment.