From abb64ba316c29caddc49727ca2cac2f0ed5970c7 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Sun, 7 Dec 2025 02:04:51 -0700 Subject: [PATCH] docs: Build fix on release branches (#3130) Small build fix for the navbar label for the version dropdown, when building in release version branches. --- docs/docusaurus.config.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 7f3341e1c..babf8c6e3 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -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",