File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ const redirect = url => (window.location.href = url);
2424 * @param {{ metadata: import('../../types').SerializedMetadata } } props
2525 */
2626export default ( { metadata } ) => {
27- const introducedMajor = getMajorVersion ( metadata . introducedIn ) ;
27+ const introducedMajor = getMajorVersion (
28+ metadata . added ?? metadata . introduced_in
29+ ) ;
2830
2931 // Filter pre-computed versions by compatibility and resolve per-page URL
3032 const compatibleVersions = versions
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import { getSortedHeadNodes } from '../../jsx-ast/utils/getSortedHeadNodes.mjs';
2525export default function createConfigSource ( input ) {
2626 const config = getConfig ( 'web' ) ;
2727
28- const currentVersion = `v${ getVersionFromSemVer ( config . version ) } ` ;
28+ const currentVersion = `v${ config . version . version } ` ;
2929 const templateVars = { ...config , version : currentVersion } ;
3030
3131 // Partially populate URL templates: resolve config-level placeholders,
You can’t perform that action at this time.
0 commit comments