Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
jugshaurya authored Jul 27, 2024
1 parent 50de3d7 commit ee2282b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webview/frontend/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Judge(props: {
const [onlineJudgeEnv, setOnlineJudgeEnv] = useState<boolean>(false);
const [webviewState, setWebviewState] = useState<WebViewpersistenceState>(
() => {
const vscodeState = vscodeApi.getState();
const vscodeState = vscodeApi?.getState();
const ret = {
dialogCloseDate: vscodeState?.dialogCloseDate || Date.now(),
};
Expand Down

0 comments on commit ee2282b

Please sign in to comment.