docs: Build fix on release branches (#3130)

Small build fix for the navbar label for the version dropdown, when
building in release version branches.
This commit is contained in:
Pete Johanson 2025-12-07 02:04:51 -07:00 committed by GitHub
parent 8de5b120aa
commit abb64ba316
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 5 deletions

View File

@ -22,11 +22,13 @@ const versionNavbarItems = [
})),
];
const versionDropDownLabel = isDevelopmentVersion
? versionNavbarItems[0].label
: versionNavbarItems.find((item) => {
return item.label === gitBranch.replace("-branch", "");
});
const versionDropDownLabel = (
isDevelopmentVersion
? versionNavbarItems[0]
: versionNavbarItems.find((item) => {
return item.label === gitBranch.replace("-branch", "");
})
).label;
module.exports = {
title: "ZMK Firmware",