FIX: prevents crash if assign_allowed_on_groups is empty
This commit is contained in:
parent
3718891184
commit
b302d7566b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue