diff client/src/components/importconfiguration/types/Soundingresults.vue @ 3712:9eab897f66b6

import_soundingresult: form parameter for beamtype to boolean
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 20 Jun 2019 12:44:19 +0200
parents ee7dc0bea083
children 73589ed481f5
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 11:59:36 2019 +0200
+++ b/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 12:44:19 2019 +0200
@@ -314,7 +314,10 @@
         formData.append("depth-reference", this.depthReference);
       if (this.projection) formData.append("epsg", this.projection);
       if (this.beamType)
-        formData.append("single-beam", this.$options.BEAMTYPES.SINGLEBEAM);
+        formData.append(
+          "single-beam",
+          this.beamType === this.$options.BEAMTYPES.SINGLEBEAM
+        );
 
       HTTP.post("/imports/sr", formData, {
         headers: {