mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
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:
committed by
Peter Johanson
parent
691740c233
commit
acfd8e5ea7
@@ -22,11 +22,13 @@ const versionNavbarItems = [
|
|||||||
})),
|
})),
|
||||||
];
|
];
|
||||||
|
|
||||||
const versionDropDownLabel = isDevelopmentVersion
|
const versionDropDownLabel = (
|
||||||
? versionNavbarItems[0].label
|
isDevelopmentVersion
|
||||||
|
? versionNavbarItems[0]
|
||||||
: versionNavbarItems.find((item) => {
|
: versionNavbarItems.find((item) => {
|
||||||
return item.label === gitBranch.replace("-branch", "");
|
return item.label === gitBranch.replace("-branch", "");
|
||||||
});
|
})
|
||||||
|
).label;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: "ZMK Firmware",
|
title: "ZMK Firmware",
|
||||||
|
|||||||
Reference in New Issue
Block a user