Skip to content

Commit

Permalink
fix: basicspage broken when no displayname drivers enabled (#4062)
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored Oct 8, 2024
1 parent 9295e7b commit c737d7b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions framework/core/js/src/admin/components/BasicsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export default class BasicsPage<CustomAttrs extends IPageAttrs = IPageAttrs> ext
90
);

items.add(
'default-locale',
Object.keys(this.localeOptions).length > 1 && (
Object.keys(this.localeOptions).length > 1 &&
items.add(
'default-locale',
<>
{this.buildSettingComponent({
type: 'select',
Expand All @@ -104,10 +104,9 @@ export default class BasicsPage<CustomAttrs extends IPageAttrs = IPageAttrs> ext
setting: 'show_language_selector',
label: app.translator.trans('core.admin.basics.show_language_selector_label'),
})}
</>
),
80
);
</>,
80
);

items.add(
'home-page',
Expand Down Expand Up @@ -136,18 +135,19 @@ export default class BasicsPage<CustomAttrs extends IPageAttrs = IPageAttrs> ext
60
);

items.add(
'display-name-driver',
Object.keys(this.displayNameOptions).length > 1 &&
Object.keys(this.displayNameOptions).length > 1 &&
items.add(
'display-name-driver',

this.buildSettingComponent({
type: 'select',
setting: 'display_name_driver',
options: this.displayNameOptions,
label: app.translator.trans('core.admin.basics.display_name_heading'),
help: app.translator.trans('core.admin.basics.display_name_text'),
}),
50
);
50
);

items.add(
'slug-driver',
Expand Down

0 comments on commit c737d7b

Please sign in to comment.