guard against a typeError if there are no owners

pull/1/head
ansuz 5 years ago
parent fe0e02a421
commit 075eddb1db

@ -981,7 +981,7 @@ define([
var state = data.restricted ? Messages.allow_enabled : Messages.allow_disabled; var state = data.restricted ? Messages.allow_enabled : Messages.allow_disabled;
content.push(h('label', Messages._getKey('allow_label', [state]))); content.push(h('label', Messages._getKey('allow_label', [state])));
if (data.restricted) { 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); var _allowedGrid = getUserList(common, _allowed);
content.push(_allowedGrid.div); content.push(_allowedGrid.div);
} }

Loading…
Cancel
Save