mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 12:39:01 +00:00
fixed console errors in the ui for ElasticSearchReIndexPage (#10982)
This commit is contained in:
parent
b3e7919c92
commit
0bbcfc5b3d
@ -75,11 +75,13 @@ const ElasticSearchIndexPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const stopBatchReIndexedJob = async () => {
|
const stopBatchReIndexedJob = async () => {
|
||||||
try {
|
if (batchJobData) {
|
||||||
const response = await stopBatchJobReIndex(batchJobData?.id);
|
try {
|
||||||
showSuccessToast(jsonData['api-success-messages']['stop-re-index']);
|
await stopBatchJobReIndex(batchJobData.id);
|
||||||
} catch (error) {
|
showSuccessToast(jsonData['api-success-messages']['stop-re-index']);
|
||||||
showErrorToast(error as AxiosError);
|
} catch (error) {
|
||||||
|
showErrorToast(error as AxiosError);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user