1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-19 21:46:43 -04:00

Fixed: Prevent unexpected data breaking Series Import

This commit is contained in:
Mark McDowall
2022-12-17 20:53:57 -08:00
parent fb76c237bf
commit b8714d80a1
2 changed files with 26 additions and 14 deletions
@@ -118,13 +118,19 @@ class ImportSeriesSelectFolder extends Component {
<ul>
{
saveError.responseJSON.map((e, index) => {
return (
<li key={index}>
{e.errorMessage}
</li>
);
})
Array.isArray(saveError.responseJSON) ?
saveError.responseJSON.map((e, index) => {
return (
<li key={index}>
{e.errorMessage}
</li>
);
}) :
<li>
{
JSON.stringify(saveError.responseJSON)
}
</li>
}
</ul>
</Alert> :