From 98902312f71761d4a6f317f6c34a4c3b6df730e6 Mon Sep 17 00:00:00 2001 From: David Newell Date: Wed, 4 Dec 2024 13:37:07 +0000 Subject: [PATCH] fix: table ids & loading (#26594) --- .../ErrorTrackingConfigurationScene.tsx | 14 ++++++++++++-- .../error-tracking/errorTrackingSymbolSetLogic.tsx | 6 +----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/src/scenes/error-tracking/ErrorTrackingConfigurationScene.tsx b/frontend/src/scenes/error-tracking/ErrorTrackingConfigurationScene.tsx index a7e105958f356..d381d62640a0f 100644 --- a/frontend/src/scenes/error-tracking/ErrorTrackingConfigurationScene.tsx +++ b/frontend/src/scenes/error-tracking/ErrorTrackingConfigurationScene.tsx @@ -18,6 +18,11 @@ export const scene: SceneExport = { export function ErrorTrackingConfigurationScene(): JSX.Element { const { missingSymbolSets, validSymbolSets } = useValues(errorTrackingSymbolSetLogic) + const { loadSymbolSets } = useActions(errorTrackingSymbolSetLogic) + + useEffect(() => { + loadSymbolSets() + }, [loadSymbolSets]) return (
@@ -27,18 +32,22 @@ export function ErrorTrackingConfigurationScene(): JSX.Element { automatically retrieves source maps where possible. Cases where it was not possible are listed below. Source maps can be uploaded retroactively but changes will only apply to all future exceptions ingested.

- {missingSymbolSets.length > 0 && } - {validSymbolSets.length > 0 && } + {missingSymbolSets.length > 0 && ( + + )} + {validSymbolSets.length > 0 && }
) } const SymbolSetTable = ({ + id, dataSource, pageSize, missing, }: { + id: string dataSource: ErrorTrackingSymbolSet[] pageSize: number missing?: boolean @@ -98,6 +107,7 @@ const SymbolSetTable = ({ return ( ( }, }, })), - - afterMount(({ actions }) => { - actions.loadSymbolSets() - }), ])