mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 10:56:02 +00:00
UI: Fixed count issue for delete modal (#9430)
This commit is contained in:
parent
cadfb68826
commit
039e115bc1
@ -267,7 +267,7 @@ export const getAdvancedFieldDefaultOptions = (
|
||||
export const getEntityCount = async (
|
||||
path: string,
|
||||
database?: string
|
||||
): Promise<AxiosResponse<{ paging: Paging }>> => {
|
||||
): Promise<{ paging: Paging }> => {
|
||||
const params = { database, limit: 0 };
|
||||
|
||||
const response = await APIClient.get(`/${path}`, { params });
|
||||
|
@ -657,7 +657,7 @@ export const setServiceSchemaCount = (
|
||||
let count = 0;
|
||||
results.forEach((result) => {
|
||||
if (result.status === PROMISE_STATE.FULFILLED) {
|
||||
count += result.value.data?.paging?.total || 0;
|
||||
count += result.value?.paging?.total || 0;
|
||||
}
|
||||
});
|
||||
callback(count);
|
||||
@ -678,7 +678,7 @@ export const setServiceTableCount = (
|
||||
let count = 0;
|
||||
results.forEach((result) => {
|
||||
if (result.status === PROMISE_STATE.FULFILLED) {
|
||||
count += result.value.data?.paging?.total || 0;
|
||||
count += result.value?.paging?.total || 0;
|
||||
}
|
||||
});
|
||||
callback(count);
|
||||
|
Loading…
x
Reference in New Issue
Block a user