Skip to content

Commit

Permalink
support other tabs without subcategories
Browse files Browse the repository at this point in the history
  • Loading branch information
CNCF-Bot committed Mar 30, 2023
1 parent 73ac6d4 commit af77ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/landscapeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function calcLandscapeSettingsList(settingsObj) {
.sort((a, b) => a.tab_index - b.tab_index)
.map(({ url, ...rest }) => {
const basePath = url === 'landscape' ? null : url
const isMain = settingsObj.big_picture.main.url === url
const isMain = !rest.category;
return { url, basePath, isMain, ...rest }
})

Expand Down

0 comments on commit af77ba3

Please sign in to comment.