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:
Ayaz Hafiz 2020-05-31 09:23:39 -07:00 committed by Caleb Cartwright
parent 1d6002ae38
commit 667a2da7af

View file

@ -155,7 +155,9 @@
head: val[0].text, head: val[0].text,
value: val, value: val,
stable: val.some((elem) => { 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) => { text: val.reduce((result, next) => {
return next.text != null return next.text != null