set message if it's not been changed
This commit is contained in:
parent
985c93e873
commit
3c714bb439
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ function postToast(targetElement, url, method, data, callbackFn) {
|
|||
|
||||
if (xhr.status >= 200 && xhr.status < 300 && data && data['message']) {
|
||||
const toastPostSuccessTextElement = document.getElementById("toast-post-success-text");
|
||||
if (message !== null) {
|
||||
if (message === null) {
|
||||
message = data["message"];
|
||||
}
|
||||
if (message === null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue