diff --git a/packages/ui/app/src/api-playground/PlaygroundContext.tsx b/packages/ui/app/src/api-playground/PlaygroundContext.tsx index d58a0b17f4..78b7ffb08b 100644 --- a/packages/ui/app/src/api-playground/PlaygroundContext.tsx +++ b/packages/ui/app/src/api-playground/PlaygroundContext.tsx @@ -50,6 +50,11 @@ export const PLAYGROUND_FORM_STATE_ATOM = atomWithStorage { + const res = await fetch(url); + return res.json(); +}; + export const PlaygroundContextProvider: FC = ({ children }) => { const { isApiPlaygroundEnabled } = useFeatureFlags(); const [apis, setApis] = useAtom(APIS); @@ -58,7 +63,7 @@ export const PlaygroundContextProvider: FC = ({ children }) = const key = urljoin(basePath ?? "", "/api/fern-docs/resolve-api"); - const { data } = useSWR | null>(key); + const { data } = useSWR | null>(key, fetcher); useEffect(() => { if (data != null) { setApis(data); diff --git a/packages/ui/app/src/commons/__test__/__snapshots__/CopyToClipboardButton.test.tsx.snap b/packages/ui/app/src/commons/__test__/__snapshots__/CopyToClipboardButton.test.tsx.snap index e17882300c..9b6fef851b 100644 --- a/packages/ui/app/src/commons/__test__/__snapshots__/CopyToClipboardButton.test.tsx.snap +++ b/packages/ui/app/src/commons/__test__/__snapshots__/CopyToClipboardButton.test.tsx.snap @@ -4,10 +4,16 @@ exports[`CopyToClipboardButton > renders correctly 1`] = `