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