[INFRA-444] | Piyush | Update auto close values for all toaster types
This commit is contained in:
@@ -148,10 +148,10 @@ const Form = (props: any) => {
|
||||
.then((r) => {
|
||||
r.json().then(resJson => {
|
||||
if(r.ok) {
|
||||
toast.update(toastId, {render: 'Updated', type: 'success'})
|
||||
toast.update(toastId, {render: 'Updated', type: 'success', autoClose: 3000})
|
||||
setFormInitData(resJson.manifest);
|
||||
} else {
|
||||
toast.update(toastId, {render: formatDisplayData({error: resJson.error, message: resJson.message}), type: 'error'})
|
||||
toast.update(toastId, {render: formatDisplayData({error: resJson.error, message: resJson.message}), type: 'error', autoClose: 5000})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user