From fa0045809088bb1ecdcb9ab5dd3423ba34e982e9 Mon Sep 17 00:00:00 2001 From: Opaque02 <66582645+Opaque02@users.noreply.github.com> Date: Mon, 21 Oct 2024 08:16:39 +1000 Subject: [PATCH] Fixed error not showing up in certain conditions --- src/ui/admin-ui-handler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/admin-ui-handler.ts b/src/ui/admin-ui-handler.ts index bdf53a9f42c..6249e54d8c3 100644 --- a/src/ui/admin-ui-handler.ts +++ b/src/ui/admin-ui-handler.ts @@ -198,6 +198,7 @@ export default class AdminUiHandler extends FormModalUiHandler { } this.adminLinkUnlink(this.convertInputsToAdmin(), service, mode).then(response => { // attempts to link/unlink depending on the service if (response.error) { + this.scene.ui.setMode(Mode.LOADING, { buttonActions: []}); return this.showMessage(response.errorType, adminResult, true); // fail } else { // success, reload panel with new results this.scene.ui.setMode(Mode.LOADING, { buttonActions: []});