2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-11 07:24:15 +00:00

JS linting

This commit is contained in:
Oliver
2021-10-05 11:02:57 +11:00
parent e7d78db87b
commit 7ecd4c70e7
2 changed files with 14 additions and 21 deletions

View File

@ -905,7 +905,7 @@ function handleNestedErrors(errors, field_name, options) {
return;
}
var nest_list = nest_list = options["nested"][field_name];
var nest_list = nest_list = options['nested'][field_name];
// Nest list must be provided!
if (!nest_list) {
@ -996,7 +996,7 @@ function handleFormErrors(errors, fields, options) {
var field = fields[field_name];
if ((field.type == "field") && ("child" in field)) {
if ((field.type == 'field') && ('child' in field)) {
// This is a "nested" field
handleNestedErrors(errors, field_name, options);
} else {
@ -1348,7 +1348,7 @@ function initializeRelatedField(field, fields, options) {
query.limit = pageSize;
// Allow custom run-time filter augmentation
if ("adjustFilters" in field) {
if ('adjustFilters' in field) {
query = field.adjustFilters(query);
}