mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
refactor(use-problem): pass problemId to getPath function
This commit is contained in:
parent
b339e407cf
commit
0e5e683ef3
@ -69,8 +69,8 @@ export const useProblem = () => {
|
||||
);
|
||||
|
||||
const currentPath = useMemo(
|
||||
() => (currentEditorLanguageConfig ? getPath(currentEditorLanguageConfig) : ""),
|
||||
[currentEditorLanguageConfig]
|
||||
() => (currentEditorLanguageConfig ? getPath(problemId, currentEditorLanguageConfig) : ""),
|
||||
[problemId, currentEditorLanguageConfig]
|
||||
);
|
||||
|
||||
// On initialization, load the stored language and corresponding code content
|
||||
|
Loading…
Reference in New Issue
Block a user