diff --git a/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesFooter.js b/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesFooter.js
index a4b530451..9f1911432 100644
--- a/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesFooter.js
+++ b/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesFooter.js
@@ -249,13 +249,19 @@ class ImportSeriesFooter extends Component {
body={
{
- importError.responseJSON.map((error, index) => {
- return (
- -
- {error.errorMessage}
-
- );
- })
+ Array.isArray(importError.responseJSON) ?
+ importError.responseJSON.map((error, index) => {
+ return (
+ -
+ {error.errorMessage}
+
+ );
+ }) :
+ -
+ {
+ JSON.stringify(importError.responseJSON)
+ }
+
}
}
diff --git a/frontend/src/AddSeries/ImportSeries/SelectFolder/ImportSeriesSelectFolder.js b/frontend/src/AddSeries/ImportSeries/SelectFolder/ImportSeriesSelectFolder.js
index 0f7f20a33..742cb2c4f 100644
--- a/frontend/src/AddSeries/ImportSeries/SelectFolder/ImportSeriesSelectFolder.js
+++ b/frontend/src/AddSeries/ImportSeries/SelectFolder/ImportSeriesSelectFolder.js
@@ -118,13 +118,19 @@ class ImportSeriesSelectFolder extends Component {
{
- saveError.responseJSON.map((e, index) => {
- return (
- -
- {e.errorMessage}
-
- );
- })
+ Array.isArray(saveError.responseJSON) ?
+ saveError.responseJSON.map((e, index) => {
+ return (
+ -
+ {e.errorMessage}
+
+ );
+ }) :
+ -
+ {
+ JSON.stringify(saveError.responseJSON)
+ }
+
}
: