changeset 4492:e289d3f32b75

client: importOverview: avoid undefined in the exported csv file
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 27 Sep 2019 14:20:42 +0200
parents e3d436052b7c
children b4880e7d4082
files client/src/components/importoverview/ImportOverview.vue
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importoverview/ImportOverview.vue	Fri Sep 27 14:09:21 2019 +0200
+++ b/client/src/components/importoverview/ImportOverview.vue	Fri Sep 27 14:20:42 2019 +0200
@@ -191,9 +191,9 @@
         encodeURIComponent(
           this.imports
             .map(el => {
-              return ` ${el.id}, ${el.kind}, ${el.enqueued}, ${el.user}, ${
-                el.country
-              }, ${el.signer}, ${el.state}, ${el.warnings}`;
+              return ` ${el.id}, ${el.kind}, ${el.enqueued}, ${el.user ||
+                " "}, ${el.country || " "}, ${el.signer || " "}, ${el.state ||
+                " "}, ${el.warnings || " "}`;
             })
             .join("\n")
         )