mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
fix(store): initialize editor value as empty string
This commit is contained in:
parent
3863d63dee
commit
5925ea8192
@ -35,7 +35,7 @@ export const useCodeEditorStore = create<CodeEditorState>()(
|
|||||||
hydrated: false,
|
hydrated: false,
|
||||||
language: DefaultEditorLanguageConfig.id,
|
language: DefaultEditorLanguageConfig.id,
|
||||||
path: getPath(DefaultEditorLanguageConfig.id),
|
path: getPath(DefaultEditorLanguageConfig.id),
|
||||||
value: "#include<stdio.h>",
|
value: "",
|
||||||
lspConfig: null,
|
lspConfig: null,
|
||||||
isLspEnabled: true,
|
isLspEnabled: true,
|
||||||
editorConfig: DefaultEditorOptionConfig,
|
editorConfig: DefaultEditorOptionConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user