From a22e4a85e3ec598fb381f256d57cbb84ca9fb0a6 Mon Sep 17 00:00:00 2001 From: Ryota Sasazawa <65695538+sasamuku@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:39:03 +0900 Subject: [PATCH] Update frontend/packages/erd-core/src/features/gtm/utils/openRelatedTablesLogEvent.ts Co-authored-by: Junki Saito --- .../TableNode/TableDetail/RelatedTables/RelatedTables.tsx | 4 ++-- .../src/features/gtm/utils/openRelatedTablesLogEvent.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 b4da6d9e..557fc719 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 { updateActiveTableName, useDBStructureStore } from '@/stores' import type { Table } from '@liam-hq/db-structure' import { GotoIcon, IconButton } from '@liam-hq/ui' @@ -30,7 +30,7 @@ export const RelatedTables: FC = ({ table }) => { })) }) updateActiveTableName(undefined) - OpenRelatedTablesLogEvent({ + openRelatedTablesLogEvent({ tableId: table.name, }) }, [nodes, setNodes, 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({