mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 10:26:09 +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,
|
results: INITIAL_TEST_RESULT_SUMMARY,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isTableDeleted = useMemo(() => entityDetails.deleted, [entityDetails]);
|
||||||
|
|
||||||
const fetchAllTests = async () => {
|
const fetchAllTests = async () => {
|
||||||
try {
|
try {
|
||||||
const { data } = await getListTestCase({
|
const { data } = await getListTestCase({
|
||||||
@ -174,7 +176,7 @@ function TableSummary({ entityDetails }: TableSummaryProps) {
|
|||||||
if (!isEmpty(entityDetails)) {
|
if (!isEmpty(entityDetails)) {
|
||||||
setTableDetails(entityDetails);
|
setTableDetails(entityDetails);
|
||||||
fetchAllTests();
|
fetchAllTests();
|
||||||
fetchProfilerData();
|
!isTableDeleted && fetchProfilerData();
|
||||||
}
|
}
|
||||||
}, [entityDetails]);
|
}, [entityDetails]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user