mirror of https://github.com/zmkfirmware/zmk.git
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:
parent
8de5b120aa
commit
abb64ba316
|
|
@ -22,11 +22,13 @@ const versionNavbarItems = [
|
||||||
})),
|
})),
|
||||||
];
|
];
|
||||||
|
|
||||||
const versionDropDownLabel = isDevelopmentVersion
|
const versionDropDownLabel = (
|
||||||
? versionNavbarItems[0].label
|
isDevelopmentVersion
|
||||||
: versionNavbarItems.find((item) => {
|
? versionNavbarItems[0]
|
||||||
return item.label === gitBranch.replace("-branch", "");
|
: versionNavbarItems.find((item) => {
|
||||||
});
|
return item.label === gitBranch.replace("-branch", "");
|
||||||
|
})
|
||||||
|
).label;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: "ZMK Firmware",
|
title: "ZMK Firmware",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue