From ee2282b2fbac661f35afd1b108059fc709a094df Mon Sep 17 00:00:00 2001 From: Shaurya Singhal Date: Sat, 27 Jul 2024 19:29:24 +0530 Subject: [PATCH] Update App.tsx --- src/webview/frontend/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webview/frontend/App.tsx b/src/webview/frontend/App.tsx index 6af6fa3..cd9c0cf 100644 --- a/src/webview/frontend/App.tsx +++ b/src/webview/frontend/App.tsx @@ -39,7 +39,7 @@ function Judge(props: { const [onlineJudgeEnv, setOnlineJudgeEnv] = useState(false); const [webviewState, setWebviewState] = useState( () => { - const vscodeState = vscodeApi.getState(); + const vscodeState = vscodeApi?.getState(); const ret = { dialogCloseDate: vscodeState?.dialogCloseDate || Date.now(), };