🔀 refactor(parameterComponent): remove initial values from dict state and dictArr state to improve code readability and maintainability
This commit is contained in:
parent
6b129b4d44
commit
9e4f30f774
1 changed files with 1 additions and 8 deletions
|
|
@ -115,14 +115,7 @@ export default function ParameterComponent({
|
|||
});
|
||||
|
||||
const [errorDuplicateKey, setErrorDuplicateKey] = useState(false);
|
||||
const [dict, setDict] = useState({
|
||||
key1: "value1",
|
||||
key2: "value2",
|
||||
key3: "value3",
|
||||
key4: "value4",
|
||||
key5: "value5",
|
||||
key6: "value6",
|
||||
} as {});
|
||||
const [dict, setDict] = useState({} as {});
|
||||
const [dictArr, setDictArr] = useState([] as string[]);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue