guard against a typeError if there are no owners

This commit is contained in:
ansuz
2020-02-21 10:50:59 -05:00
parent fe0e02a421
commit 075eddb1db

View File

@@ -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);
} }