From 02991853376a6661075aeffef99366605c579b0f Mon Sep 17 00:00:00 2001 From: Tomas Machalek Date: Tue, 2 Jan 2024 12:42:34 +0100 Subject: [PATCH] Fix UD tagbuilder initialization - incorrect value scope (support ticket 2886) --- .../js/plugins/defaultTaghelper/views.tsx | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/public/files/js/plugins/defaultTaghelper/views.tsx b/public/files/js/plugins/defaultTaghelper/views.tsx index d0adcf0e89..c3bd9bbec2 100644 --- a/public/files/js/plugins/defaultTaghelper/views.tsx +++ b/public/files/js/plugins/defaultTaghelper/views.tsx @@ -222,22 +222,20 @@ export function init( ); }; - // ------------------------------------------- - - const tagsetTabs = pipe( - deps, - List.map( - ([tagset,,]) => ({ - id: tagset, - label: tagset - }) - ) - ); - // ---------------- ----------------------------------- const ActiveTagBuilder:React.FC = (props) => { + const tagsetTabs = pipe( + deps, + List.map( + ([tagset,,]) => ({ + id: tagset, + label: tagset + }) + ) + ); + const handleTabSelection = (tagsetId:string) => { dispatcher.dispatch({ name: Actions.SetActiveTag.name,