mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
ui: display fix
This commit is contained in:
1 parent
4f9a8f1580
commit
ee97a4bde6
3 files changed
+5
-3
No files matched your search
@@ -88,6 +88,8 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
if (UiContext.domain.langs && !`,${UiContext.domain.langs},`.includes(`,${key},`)) continue;
|
||||
LANGS[key] = window.LANGS[key];
|
||||
}
|
||||
const keys = Object.keys(LANGS);
|
||||
if (!keys.includes(this.props.editorLang)) this.props.setEditorLanguage(keys[0]);
|
||||
return (
|
||||
<Toolbar>
|
||||
<ToolbarButton
|
||||
|
||||
Reference in new issue
Block a user