From a90f1a5041cf4a622f41f3b2680052e3a4d5ba11 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 4 May 2022 11:35:47 +0800
Subject: ...

---
 FrontEnd/src/views/common/input/InputPanel.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'FrontEnd/src/views/common/input/InputPanel.tsx')

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;
 }
-- 
cgit v1.2.3

