Skip to content

Commit

Permalink
fix: Olivier review
Browse files Browse the repository at this point in the history
  • Loading branch information
bharatkashyap committed May 8, 2024
1 parent da58bbd commit 4cecbf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/modules/components/AppLayoutDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ export default function AppLayoutDocs(props) {
throw new Error('Missing description in the page');
}

let productName = convertProductIdToName(getProductInfoFromUrl(router.asPath));
const productName = convertProductIdToName(getProductInfoFromUrl(router.asPath));
if (!productName) {
productName = 'MUI';
console.error('productName mapping missing for', router.asPath);
}

const Layout = disableLayout ? React.Fragment : AppFrame;
Expand Down
1 change: 1 addition & 0 deletions docs/src/modules/components/AppSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ const productNameProductId = {
toolpad: 'Toolpad',
'toolpad-studio': 'Toolpad Studio',
'toolpad-core': 'Toolpad Core',
'docs-infra': 'Docs Infra',
};

export function convertProductIdToName(productInfo) {
Expand Down

0 comments on commit 4cecbf5

Please sign in to comment.