Skip to content

Commit

Permalink
Fix stable toggle on gh pages configuration site
Browse files Browse the repository at this point in the history
A demonstration of the fix is included in the PR associated with this
commit.
  • Loading branch information
ayazhafiz authored and calebcartwright committed Aug 18, 2021
1 parent 1d6002a commit 667a2da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/index.html
Expand Up @@ -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
Expand Down Expand Up @@ -188,4 +190,4 @@
}
</script>
</body>
</html>
</html>

0 comments on commit 667a2da

Please sign in to comment.