Fix error in transform modal in case of an empty object
This commit is contained in:
parent
b279ed3069
commit
8cc4bf7efa
|
@ -147,7 +147,10 @@ function showTransformModal (node, container) {
|
|||
});
|
||||
}
|
||||
else {
|
||||
elem.querySelector('#selectFieldsPart').style.display = 'none';
|
||||
var selectFieldsPart = elem.querySelector('#selectFieldsPart');
|
||||
if (selectFieldsPart) {
|
||||
selectFieldsPart.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
var selectrFilterField = new Selectr(filterField, { defaultSelected: false, clearable: true, allowDeselect: true, placeholder: 'field...' });
|
||||
|
|
Loading…
Reference in New Issue