2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

hide error message

This commit is contained in:
2021-06-06 16:32:46 +02:00
parent ded68bb4f6
commit 5e6919f14e
2 changed files with 6 additions and 1 deletions

View File

@ -780,7 +780,7 @@ function handleModalForm(url, options) {
modalSetTitle(modal, response.title);
}
if (response.hideErrorMessage || !options.hideErrorMessage) {
if (!response.hideErrorMessage && !options.hideErrorMessage) {
var warningDiv = $(modal).find('#form-validation-warning');
warningDiv.css('display', 'block');
}