Skip to content

Commit

Permalink
Merge pull request #6072 from tomachalek/supp2886_b
Browse files Browse the repository at this point in the history
Fix UD tagbuilder initialization - incorrect value scope
  • Loading branch information
tomachalek authored Jan 2, 2024
2 parents ffdf4cc + 0299185 commit d5c8611
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions public/files/js/plugins/defaultTaghelper/views.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,22 +222,20 @@ export function init(
);
};

// -------------------------------------------

const tagsetTabs = pipe(
deps,
List.map(
([tagset,,]) => ({
id: tagset,
label: tagset
})
)
);

// ---------------- <ActiveTagBuilder /> -----------------------------------

const ActiveTagBuilder:React.FC<PluginInterfaces.TagHelper.ViewProps & TabFrameModelState> = (props) => {

const tagsetTabs = pipe(
deps,
List.map(
([tagset,,]) => ({
id: tagset,
label: tagset
})
)
);

const handleTabSelection = (tagsetId:string) => {
dispatcher.dispatch<typeof Actions.SetActiveTag>({
name: Actions.SetActiveTag.name,
Expand Down

0 comments on commit d5c8611

Please sign in to comment.