mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix bugs (#437)
This commit is contained in:
1 parent
ebad34a426
commit
e87149fd45
4 files changed
+3
-12
No files matched your search
@@ -41,12 +41,6 @@ function ExtraFilesConfig() {
|
||||
const dispatch = useDispatch();
|
||||
const userRef = React.useRef<any>();
|
||||
const judgeRef = React.useRef<any>();
|
||||
React.useEffect(() => {
|
||||
userRef.current.setSelectedKeys(userExtraFiles);
|
||||
}, [JSON.stringify(userExtraFiles)]);
|
||||
React.useEffect(() => {
|
||||
judgeRef.current.setSelectedKeys(judgeExtraFiles);
|
||||
}, [JSON.stringify(judgeExtraFiles)]);
|
||||
return (
|
||||
<FormItem columns={12} label="ExtraFilesTabs" disableLabel>
|
||||
<Tabs id="ExtraFilesTabs">
|
||||
@@ -89,9 +83,6 @@ function LangConfig() {
|
||||
const dispatch = useDispatch();
|
||||
const ref = React.useRef<any>();
|
||||
const selectedKeys = langs.filter((i) => !prefixes.has(i));
|
||||
React.useEffect(() => {
|
||||
ref.current.setSelectedKeys(selectedKeys);
|
||||
}, [JSON.stringify(selectedKeys)]);
|
||||
return (
|
||||
<FormItem columns={12} label="langs">
|
||||
<CustomSelectAutoComplete
|
||||
|
||||
Reference in new issue
Block a user