Fix website docs (#5873)

There was a 500 on the playground and the switch between core and
metadata
This commit is contained in:
Félix Malfait
2024-06-14 19:05:48 +02:00
committed by GitHub
parent 9c8407c197
commit 99f4a75b58
3 changed files with 15 additions and 3 deletions

View File

@ -195,7 +195,9 @@ const TokenForm = ({
className="select"
onChange={(event) =>
router.replace(
'/' + pathname.split('/').at(-2) + '/' + event.target.value,
pathname.split('/').slice(0, -1).join('/') +
'/' +
event.target.value,
)
}
value={pathname.split('/').at(-1)}