(js) Check for undefined priority in cmpt editor

This commit is contained in:
Francis Lachapelle
2016-05-06 14:18:32 -04:00
parent c5eeadf041
commit f2903db43c

View File

@@ -245,7 +245,7 @@
}
function priorityLevel() {
if (vm.component.priority) {
if (vm.component && vm.component.priority) {
if (vm.component.priority > 5)
return l('low');
else if (vm.component.priority > 4)