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 () => {
|
||||
try {
|
||||
const response = await stopBatchJobReIndex(batchJobData?.id);
|
||||
showSuccessToast(jsonData['api-success-messages']['stop-re-index']);
|
||||
} catch (error) {
|
||||
showErrorToast(error as AxiosError);
|
||||
if (batchJobData) {
|
||||
try {
|
||||
await stopBatchJobReIndex(batchJobData.id);
|
||||
showSuccessToast(jsonData['api-success-messages']['stop-re-index']);
|
||||
} catch (error) {
|
||||
showErrorToast(error as AxiosError);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user