FIX: prevents crash if assign_allowed_on_groups is empty

This commit is contained in:
jjaffeux 2020-01-22 09:50:40 +01:00
parent 3718891184
commit b302d7566b
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ export default {
}, },
setupComponent(args, component) { setupComponent(args, component) {
const groupIDs = component.siteSettings.assign_allowed_on_groups const groupIDs = (component.siteSettings.assign_allowed_on_groups || "")
.split("|") .split("|")
.filter(Boolean); .filter(Boolean);
const groupNames = this.site.groups const groupNames = this.site.groups