File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19208,7 +19208,14 @@ async function upsertVersionsJson(params) {
1920819208 }
1920919209 versions[versionEntryIndex] = versionEntry;
1921019210 } else {
19211- versions.push({ path: version2, label: versionLabel, versionInTitle });
19211+ const newVersionEntry = {
19212+ path: version2,
19213+ label: versionLabel
19214+ };
19215+ if (versionInTitle) {
19216+ newVersionEntry.versionInTitle = versionInTitle;
19217+ }
19218+ versions.push(newVersionEntry);
1921219219 }
1921319220 versions = versions.sort((a, b) => {
1921419221 if (a.path === LATEST_VERSION_NAME && b.path !== LATEST_VERSION_NAME) {
Original file line number Diff line number Diff line change @@ -24,7 +24,14 @@ export async function upsertVersionsJson(params: {
2424 }
2525 versions [ versionEntryIndex ] = versionEntry ;
2626 } else {
27- versions . push ( { path : version , label : versionLabel , versionInTitle } ) ;
27+ const newVersionEntry : VersionEntry = {
28+ path : version ,
29+ label : versionLabel ,
30+ } ;
31+ if ( versionInTitle ) {
32+ newVersionEntry . versionInTitle = versionInTitle ;
33+ }
34+ versions . push ( newVersionEntry ) ;
2835 }
2936
3037 // Sort versions: latest first, then reverse alphabetically by path
You can’t perform that action at this time.
0 commit comments