Skip to content

Commit

Permalink
Fix website docs (twentyhq#5873)
Browse files Browse the repository at this point in the history
There was a 500 on the playground and the switch between core and
metadata
  • Loading branch information
FelixMalfait authored Jun 14, 2024
1 parent 9c8407c commit 99f4a75
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
'use client';
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 = () => {
return <GraphQlPlayground subDoc={'core'} />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
'use client';
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 = () => {
return <GraphQlPlayground subDoc={'metadata'} />;
Expand Down

0 comments on commit 99f4a75

Please sign in to comment.