guard against a typeError if there are no owners
This commit is contained in:
1 parent
fe0e02a421
commit
075eddb1db
1 file changed
+1
-1
@@ -981,7 +981,7 @@ define([
|
||||
var state = data.restricted ? Messages.allow_enabled : Messages.allow_disabled;
|
||||
content.push(h('label', Messages._getKey('allow_label', [state])));
|
||||
if (data.restricted) {
|
||||
var _allowed = Util.deduplicateString(data.owners.concat(data.allowed));
|
||||
var _allowed = Util.deduplicateString((data.owners || []).concat(data.allowed));
|
||||
var _allowedGrid = getUserList(common, _allowed);
|
||||
content.push(_allowedGrid.div);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user