Skip to content

Commit

Permalink
fix: page title
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Dec 23, 2020
1 parent 9750307 commit b6143d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/app/src/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const Sidebar: FC<SidebarProps> = ({
const { config } = store;
const { pages, menu, sidebar = [] } = config;
const page: PageConfiguration = pages?.[type] || {};
const { label = '' } = page;
const { label = propsTitle } = page;
let menuItems = Array.isArray(menu) ? staticMenusToMenuItems(menu) : [];
if (store) {
menuItems = docs.reduce((acc: TreeItems, doc: Document) => {
Expand Down Expand Up @@ -205,11 +205,11 @@ export const Sidebar: FC<SidebarProps> = ({
}, menuItems);
}
const actions: ActionItems = [];
if (propsTitle || label) {
if (label) {
actions.push({
node: (
<Heading as="h3" variant="appsidebar.items">
{propsTitle || label}
{label}
</Heading>
),
id: 'title',
Expand Down

0 comments on commit b6143d9

Please sign in to comment.