From 384d5cf8d94643c636e850b08797b7521616b491 Mon Sep 17 00:00:00 2001 From: Jordan Kiesel Date: Tue, 29 Oct 2024 01:06:38 -0600 Subject: [PATCH] fix(website): prevent playground formatted editor from being empty on navigation --- website/src/components/CodeEditor/index.tsx | 2 -- website/src/pages/playground/index.tsx | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/website/src/components/CodeEditor/index.tsx b/website/src/components/CodeEditor/index.tsx index d240c0cc..209b0c73 100644 --- a/website/src/components/CodeEditor/index.tsx +++ b/website/src/components/CodeEditor/index.tsx @@ -6,7 +6,6 @@ export default function CodeEditor( props: Readonly<{ readOnly?: boolean; value?: string; - defaultValue?: string; onChange?: (value: string | undefined) => void; }> ) { @@ -15,7 +14,6 @@ export default function CodeEditor( return (
{Object.values(TrailingComma).map(option => ( - + ))} @@ -164,8 +164,10 @@ function Inner() {
- - + + {isFirstRun.current ? null : ( + + )}
);