From cd6d47e012927be3cd5d031f1dd9ef2b0bf5ba6a Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Wed, 5 Apr 2023 14:31:32 -0500 Subject: [PATCH] FIX: Handle errors when we show the edit user directory columns modal (#20986) --- .../discourse/app/controllers/edit-user-directory-columns.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/controllers/edit-user-directory-columns.js b/app/assets/javascripts/discourse/app/controllers/edit-user-directory-columns.js index 771d5b9b306..e20e749c27e 100644 --- a/app/assets/javascripts/discourse/app/controllers/edit-user-directory-columns.js +++ b/app/assets/javascripts/discourse/app/controllers/edit-user-directory-columns.js @@ -2,7 +2,7 @@ import Controller from "@ember/controller"; import ModalFunctionality from "discourse/mixins/modal-functionality"; import { ajax } from "discourse/lib/ajax"; import EmberObject, { action } from "@ember/object"; -import { extractError } from "discourse/lib/ajax-error"; +import { extractError, popupAjaxError } from "discourse/lib/ajax-error"; import { reload } from "discourse/helpers/page-reloader"; const UP = "up"; @@ -23,7 +23,7 @@ export default Controller.extend(ModalFunctionality, { .map((c) => EmberObject.create(c)), }); }) - .catch(extractError); + .catch(popupAjaxError); }, @action