Skip to content

Commit

Permalink
fix(ui): don't use tab label as prefix on tabs which have no name.
Browse files Browse the repository at this point in the history
  • Loading branch information
andershermansen committed Dec 13, 2024
1 parent 4c3e41b commit df23139
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/ui/src/elements/WhereBuilder/reduceClientFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ export const reduceClientFields = ({
if (typeof tab.label !== 'boolean') {
const localizedTabLabel = getTranslation(tab.label, i18n)

const labelWithPrefix = labelPrefix
? labelPrefix + ' > ' + localizedTabLabel
: localizedTabLabel
const labelWithPrefix = tabHasName(tab)
? labelPrefix
? labelPrefix + ' > ' + localizedTabLabel
: localizedTabLabel
: labelPrefix

// Make sure we handle nested tabs
const tabPathPrefix =
Expand Down

0 comments on commit df23139

Please sign in to comment.