fix: show error in the modal to maintain consistency with other usecases.

This commit is contained in:
Darshan
2024-11-27 12:42:50 +05:30
parent b9bab1383c
commit e26d2d17a6
@@ -83,12 +83,9 @@
});
trackEvent(Submit.IndexCreate);
showCreateIndex = false;
} catch (error) {
addNotification({
message: error.message,
type: 'error'
});
trackError(error, Submit.IndexCreate);
} catch (err) {
error = err.message;
trackError(err, Submit.IndexCreate);
}
}