diff --git a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/RelatedTables/RelatedTables.tsx b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/RelatedTables/RelatedTables.tsx index 6c4df83a..42e9d017 100644 --- a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/RelatedTables/RelatedTables.tsx +++ b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/RelatedTables/RelatedTables.tsx @@ -1,5 +1,5 @@ import { convertDBStructureToNodes } from '@/components/ERDRenderer/convertDBStructureToNodes' -import { OpenRelatedTablesLogEvent } from '@/features/gtm/utils' +import { openRelatedTablesLogEvent } from '@/features/gtm/utils' import { replaceHiddenNodeIds, updateActiveTableName, @@ -34,7 +34,7 @@ export const RelatedTables: FC = ({ table }) => { replaceHiddenNodeIds(hiddenNodeIds) updateActiveTableName(undefined) - OpenRelatedTablesLogEvent({ + openRelatedTablesLogEvent({ tableId: table.name, }) }, [nodes, getNodes, table.name]) diff --git a/frontend/packages/erd-core/src/features/gtm/utils/openRelatedTablesLogEvent.ts b/frontend/packages/erd-core/src/features/gtm/utils/openRelatedTablesLogEvent.ts index 3c21e19c..ff3254b1 100644 --- a/frontend/packages/erd-core/src/features/gtm/utils/openRelatedTablesLogEvent.ts +++ b/frontend/packages/erd-core/src/features/gtm/utils/openRelatedTablesLogEvent.ts @@ -4,7 +4,7 @@ type OpenRelatedTablesLogEvent = { tableId: string } -export const OpenRelatedTablesLogEvent = ({ +export const openRelatedTablesLogEvent = ({ tableId, }: OpenRelatedTablesLogEvent) => { pushToDataLayer({