diff options
author | crupest <crupest@outlook.com> | 2022-05-04 11:35:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-04 11:35:47 +0800 |
commit | a90f1a5041cf4a622f41f3b2680052e3a4d5ba11 (patch) | |
tree | f4d656cea49370d02f99dd870dc89ff02cfa3fed /FrontEnd/src/views/common/input | |
parent | 1caaa504cda68e08d52127949ea7f5e2eb2f304e (diff) | |
download | timeline-a90f1a5041cf4a622f41f3b2680052e3a4d5ba11.tar.gz timeline-a90f1a5041cf4a622f41f3b2680052e3a4d5ba11.tar.bz2 timeline-a90f1a5041cf4a622f41f3b2680052e3a4d5ba11.zip |
...
Diffstat (limited to 'FrontEnd/src/views/common/input')
-rw-r--r-- | FrontEnd/src/views/common/input/InputPanel.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FrontEnd/src/views/common/input/InputPanel.tsx b/FrontEnd/src/views/common/input/InputPanel.tsx index 3ac0cb04..c76b8d45 100644 --- a/FrontEnd/src/views/common/input/InputPanel.tsx +++ b/FrontEnd/src/views/common/input/InputPanel.tsx @@ -78,8 +78,8 @@ export type InputPanelError = { export function hasError(e: InputPanelError | null | undefined): boolean { if (e == null) return false; - for (const key in e) { - if (e[key] != null) return true; + for (const key of Object.keys(e)) { + if (e[key as unknown as number] != null) return true; } return false; } |