From a0413af47d92bb148e04bbf4c67a8502c85608e7 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 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. --- 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.39.5