Fix website docs (#5873)
There was a 500 on the playground and the switch between core and metadata
This commit is contained in:
@ -195,7 +195,9 @@ const TokenForm = ({
|
|||||||
className="select"
|
className="select"
|
||||||
onChange={(event) =>
|
onChange={(event) =>
|
||||||
router.replace(
|
router.replace(
|
||||||
'/' + pathname.split('/').at(-2) + '/' + event.target.value,
|
pathname.split('/').slice(0, -1).join('/') +
|
||||||
|
'/' +
|
||||||
|
event.target.value,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
value={pathname.split('/').at(-1)}
|
value={pathname.split('/').at(-1)}
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
|
'use client';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import dynamic from 'next/dynamic';
|
||||||
|
|
||||||
import GraphQlPlayground from '../../../_components/playground/graphql-playground';
|
const GraphQlPlayground = dynamic(
|
||||||
|
() => import('../../../_components/playground/graphql-playground'),
|
||||||
|
{ ssr: false },
|
||||||
|
);
|
||||||
|
|
||||||
const CoreGraphql = () => {
|
const CoreGraphql = () => {
|
||||||
return <GraphQlPlayground subDoc={'core'} />;
|
return <GraphQlPlayground subDoc={'core'} />;
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
|
'use client';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import dynamic from 'next/dynamic';
|
||||||
|
|
||||||
import GraphQlPlayground from '../../../_components/playground/graphql-playground';
|
const GraphQlPlayground = dynamic(
|
||||||
|
() => import('../../../_components/playground/graphql-playground'),
|
||||||
|
{ ssr: false },
|
||||||
|
);
|
||||||
|
|
||||||
const CoreGraphql = () => {
|
const CoreGraphql = () => {
|
||||||
return <GraphQlPlayground subDoc={'metadata'} />;
|
return <GraphQlPlayground subDoc={'metadata'} />;
|
||||||
|
|||||||
Reference in New Issue
Block a user