From 0cb76659e90ad33b99fcae4a910b078c946b5250 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 7 Feb 2023 13:55:08 +0100 Subject: [PATCH] Update custom-wizard-admin.js.es6 --- .../javascripts/discourse/models/custom-wizard-admin.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 b/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 index 0cd677f0..280150af 100644 --- a/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 +++ b/assets/javascripts/discourse/models/custom-wizard-admin.js.es6 @@ -12,7 +12,10 @@ const GUEST_GROUP_ID = -1; const CustomWizardAdmin = EmberObject.extend({ @discourseComputed("permitted.@each.output") allowGuests(permitted) { - return permitted && permitted.filter((p) => p.output.includes(GUEST_GROUP_ID)).length; + return ( + permitted && + permitted.filter((p) => p.output.includes(GUEST_GROUP_ID)).length + ); }, save(opts) {