Bug Fix : converted ms into second by multiplying it with 1000 for success notification (#3662)

This commit is contained in:
Manish Kushare 2022-07-30 11:59:07 +05:30 committed by GitHub
parent e828f7d226
commit ef1e166790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -752,7 +752,7 @@ export function runQuery(_ref, queryId, queryName, confirmed = undefined, mode)
}
if (dataQuery.options.showSuccessNotification) {
const notificationDuration = dataQuery.options.notificationDuration || 5000;
const notificationDuration = dataQuery.options.notificationDuration * 1000 || 5000;
toast.success(dataQuery.options.successMessage, {
duration: notificationDuration,
});