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
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue