fix latent error

This commit is contained in:
justcool393 2023-07-26 12:08:45 -05:00
parent a8494276af
commit 18dcd448ff

View file

@ -151,8 +151,10 @@ function postToast(targetElement, url, method, data, callbackFn) {
}
setTimeout(() => {
targetElement.disabled = false;
targetElement.classList.remove("disabled");
if (targetElement !== null) {
targetElement.disabled = false;
targetElement.classList.remove("disabled");
}
}, 1500);
xhr.send(form);