aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/input/InputPanel.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/views/common/input/InputPanel.tsx')
-rw-r--r--FrontEnd/src/views/common/input/InputPanel.tsx4
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;
}