mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: pretest: ignore default lang missing
This commit is contained in:
1 parent
f6cc2a72ff
commit
6cf15ba612
5 files changed
+10
-10
No files matched your search
@@ -93,7 +93,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
if (UiContext.pdoc.config?.type === 'remote_judge') {
|
||||
if (availableLangs[this.props.editorLang].pretest) canUsePretest = true;
|
||||
}
|
||||
if (availableLangs[this.props.editorLang].pretest === false) canUsePretest = false;
|
||||
if (availableLangs[this.props.editorLang]?.pretest === false) canUsePretest = false;
|
||||
return (
|
||||
<Toolbar>
|
||||
{canUsePretest && (
|
||||
|
||||
Reference in new issue
Block a user