mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 02:16:18 +00:00
disabled profiler calls for deleted tables for summary panel details (#9771)
This commit is contained in:
parent
e14d06503e
commit
ecee1a6ce2
@ -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]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user