From 4e4a9c751bada85bce7ed1ff8274e08bf35ff304 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 18 Oct 2024 10:46:11 +0200 Subject: [PATCH] Guard against users editing wizard JSON directly --- .../discourse/controllers/admin-wizards-wizard-show.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 index e84154b6..c971a3db 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 @@ -95,7 +95,7 @@ export default Controller.extend({ setAfterTimeGroupIds() { const groups = this.site.groups.filter((g) => - this.wizard.after_time_groups.includes(g.name) + this.wizard.after_time_groups?.includes(g.name) ); this.setProperties({ afterTimeGroupIds: groups.map((g) => g.id),