(js) Check for undefined priority in cmpt editor

This commit is contained in:
Francis Lachapelle committed 2016-05-06 14:22:53 -04:00
1 parent c5eeadf041
commit f2903db43c
1 file changed
+1 -1
@@ -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)