From c6aad63a371ea0ecbbd833503e0278d1234f58f1 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 10 Oct 2023 11:06:03 +0100 Subject: [PATCH] DEV: Update admin-plugins-chat queryParams definition (#23868) Controller queryParam configuration should be wrapped in an array. Omitting the array wrapper seems to work under Ember 3.28, but causes an error under Ember 5. --- .../javascripts/discourse/controllers/admin-plugins-chat.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/chat/assets/javascripts/discourse/controllers/admin-plugins-chat.js b/plugins/chat/assets/javascripts/discourse/controllers/admin-plugins-chat.js index 3d74162136d..56486d404a2 100644 --- a/plugins/chat/assets/javascripts/discourse/controllers/admin-plugins-chat.js +++ b/plugins/chat/assets/javascripts/discourse/controllers/admin-plugins-chat.js @@ -8,7 +8,11 @@ import { inject as service } from "@ember/service"; export default class AdminPluginsChatController extends Controller { @service dialog; - queryParams = { selectedWebhookId: "id" }; + queryParams = [ + { + selectedWebhookId: "id", + }, + ]; loading = false; creatingNew = false;