add JS safety check for async table filter
This commit is contained in:
parent
7b8d1d3eec
commit
60b639151f
@ -31,10 +31,15 @@
|
|||||||
if (formElement.matches('.' + JS_INITIALIZED_CLASS)) {
|
if (formElement.matches('.' + JS_INITIALIZED_CLASS)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var formIdElement = formElement.querySelector('[name="form-identifier"]');
|
||||||
|
if (!formIdElement) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var tableIdent = options.dbtIdent;
|
var tableIdent = options.dbtIdent;
|
||||||
|
var formId = formIdElement.value;
|
||||||
var formId = formElement.querySelector('[name="form-identifier"]').value;
|
|
||||||
var inputs = {
|
var inputs = {
|
||||||
search: [],
|
search: [],
|
||||||
input: [],
|
input: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user