aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web/src/components/Search/Response.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/src/components/Search/Response.jsx b/src/web/src/components/Search/Response.jsx
index 567b80a3..a17df823 100644
--- a/src/web/src/components/Search/Response.jsx
+++ b/src/web/src/components/Search/Response.jsx
@@ -254,8 +254,9 @@ class Response extends Component {
size="large"
/>
<Label>
- {downloadError.data +
- ` (HTTP ${downloadError.status} ${downloadError.statusText})`}
+ {downloadError?.data
+ ? `${downloadError.data} (HTTP ${downloadError.status} ${downloadError.statusText})`
+ : 'Download failed'}
</Label>
</span>
)}