Skip to content

Commit 984acfd

Browse files
committed
chore: fix ?
1 parent 6e7b733 commit 984acfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/lib/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const main = async ({loglevel, releases: rawReleases, useCurrent, navPath, conte
117117
* this voids the cache when a new version is added to release.json / not in the cli-cache.json
118118
* this is done so that the previous major versions nav can be reset to legacy and pages can be droped from its variant
119119
*/
120-
cache.voidOnNewKey(releases.map(v => v.id))
120+
cache?.voidOnNewKey(releases.map(v => v.id))
121121

122122
const updates = await Promise.all(
123123
releases.map(r => extractRelease(r, {cache, contentPath, baseNav: navData, prerelease})),

0 commit comments

Comments
 (0)