From 34671a16da41cfab634628245bf3785091917a4d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 23 Oct 2025 16:02:19 +0000 Subject: [PATCH] Bug 39320: (QA follow-up): Fix widget with settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was broken from the rewrite into bug 38201. Fixed here. Without this patch, if you click 'settings' on the licenses widgets and pick different values, you get errors on the console and everything breaks. Signed-off-by: Tomás Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-widget.js b/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-widget.js index 7dd41d7398f..26f55c88454 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-widget.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-widget.js @@ -39,7 +39,7 @@ export function useBaseWidget(widgetConfig, emit) { const savedSettings = localStorage.getItem( "widget-" + widgetConfig.id + "-settings" ); - return savedSettings || null; + return JSON.parse(savedSettings) || null; }; onBeforeMount(() => { -- 2.51.2