Fix stable toggle on gh pages configuration site
A demonstration of the fix is included in the PR associated with this commit.
This commit is contained in:
parent
1d6002ae38
commit
667a2da7af
@ -155,7 +155,9 @@
|
||||
head: val[0].text,
|
||||
value: val,
|
||||
stable: val.some((elem) => {
|
||||
return !!elem.text && elem.text.includes("**Stable**: Yes")
|
||||
return elem.type === "list" &&
|
||||
!!elem.raw &&
|
||||
elem.raw.includes("**Stable**: Yes");
|
||||
}),
|
||||
text: val.reduce((result, next) => {
|
||||
return next.text != null
|
||||
@ -188,4 +190,4 @@
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user