aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components/SelectField.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/components/SelectField.js')
-rw-r--r--modern/src/common/components/SelectField.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/components/SelectField.js b/modern/src/common/components/SelectField.js
index 98473b16..5a9a176b 100644
--- a/modern/src/common/components/SelectField.js
+++ b/modern/src/common/components/SelectField.js
@@ -25,6 +25,8 @@ const SelectField = ({
const response = await fetch(endpoint);
if (response.ok) {
setItems(await response.json());
+ } else {
+ throw Error(await response.text());
}
}
}, []);