mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
refactor(PlaygroundLayout): separate templates from problemData
This commit is contained in:
parent
d0118eca65
commit
45cbbc2978
@ -40,12 +40,14 @@ export default async function PlaygroundLayout({
|
||||
return notFound();
|
||||
}
|
||||
|
||||
const { templates, ...problemWithoutTemplates } = problemData;
|
||||
|
||||
return (
|
||||
<div className="h-screen flex flex-col">
|
||||
<ProblemStoreProvider
|
||||
problemId={id}
|
||||
problem={problemData}
|
||||
templates={problemData.templates ?? []}
|
||||
problem={problemWithoutTemplates}
|
||||
templates={templates}
|
||||
editorLanguageConfigs={editorLanguageConfigs}
|
||||
languageServerConfigs={languageServerConfigs}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user