Skip to content

Commit

Permalink
Merge pull request #22258 from gitstart/fix/addon-panel-update
Browse files Browse the repository at this point in the history
fix : Addon panel does not update after disabling/enabling an addon
  • Loading branch information
valentinpalkovic committed May 1, 2023
2 parents f0af303 + 82d7371 commit db0eee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/ui/components/src/tabs/tabs.hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ export function useList(list: ChildrenList) {

const crossBorder = x + widthSum + tabWidth > rightBorder;

if (!crossBorder) {
// `!tabButton` happens when new tab has just been added
if (!crossBorder || !tabButton) {
newVisibleList.push(item);
}

Expand Down

0 comments on commit db0eee7

Please sign in to comment.