[importer] Fix timing related JS exceptions
@@ -2058,7 +2058,7 @@ ${ assist.assistPanel() }
})
});
self.outputFormats.subscribe(function (newValue) {
- if (newValue.map(function (entry) { return entry.value; }).indexOf(self.outputFormat()) < 0) {
+ if (newValue.length && newValue.map(function (entry) { return entry.value; }).indexOf(self.outputFormat()) < 0) {
self.outputFormat(newValue && newValue[0].value);
}
});
@@ -2303,8 +2303,10 @@ ${ assist.assistPanel() }
return true;
}
})) {
+ if (namespace.computes.length) {
self.compute(namespace.computes[0]);
}
+ }
})
});
