Fix error in transform modal in case of an empty object

This commit is contained in:
jos 2019-04-02 21:27:50 +02:00
parent b279ed3069
commit 8cc4bf7efa
1 changed files with 4 additions and 1 deletions

View File

@ -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...' });