From ecee1a6ce28f8fed5dd114a02f34ff0ded8031f3 Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Wed, 18 Jan 2023 12:38:37 +0530 Subject: [PATCH] disabled profiler calls for deleted tables for summary panel details (#9771) --- .../TableSummary/TableSummary.component.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/TableSummary/TableSummary.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/TableSummary/TableSummary.component.tsx index 22bdef4a3ef..ea0a07208fb 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/TableSummary/TableSummary.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/TableSummary/TableSummary.component.tsx @@ -53,6 +53,8 @@ function TableSummary({ entityDetails }: TableSummaryProps) { results: INITIAL_TEST_RESULT_SUMMARY, }); + const isTableDeleted = useMemo(() => entityDetails.deleted, [entityDetails]); + const fetchAllTests = async () => { try { const { data } = await getListTestCase({ @@ -174,7 +176,7 @@ function TableSummary({ entityDetails }: TableSummaryProps) { if (!isEmpty(entityDetails)) { setTableDetails(entityDetails); fetchAllTests(); - fetchProfilerData(); + !isTableDeleted && fetchProfilerData(); } }, [entityDetails]);