changeset 5342:08dc7e5de1f5 extented-report

fixing linting errors
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 18 Jun 2021 12:05:57 +0200
parents e434979f6ea6
children bb6761abd81d
files client/src/components/importconfiguration/types/Soundingresults.vue client/src/components/importconfiguration/types/WaterwayProfiles.vue
diffstat 2 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Soundingresults.vue	Fri Jun 18 11:58:43 2021 +0200
+++ b/client/src/components/importconfiguration/types/Soundingresults.vue	Fri Jun 18 12:05:57 2021 +0200
@@ -469,15 +469,18 @@
     },
     depthReferenceOptions() {
       if (this.bottleneck) {
-        const bnProperties =this.bottleneck.properties;
-        const referenceLevels = JSON.parse(
-          bnProperties.reference_water_levels
-        )||{};
+        const bnProperties = this.bottleneck.properties;
+        const referenceLevels =
+          JSON.parse(bnProperties.reference_water_levels) || {};
         const result = Object.keys(referenceLevels);
-        const bottleneckBGorRO = bnProperties.responsible_country=="BG" || bnProperties.responsible_country=="RO";
+        const bottleneckBGorRO =
+          bnProperties.responsible_country == "BG" ||
+          bnProperties.responsible_country == "RO";
         const hasLDC = referenceLevels.hasOwnProperty("LDC");
         const hasZPG = referenceLevels.hasOwnProperty("ZPG");
-        if (((hasLDC  && !hasZPG) || (!hasLDC && !hasZPG && bottleneckBGorRO)) ) result.push("ZPG");
+        if ((hasLDC && !hasZPG) || (!hasLDC && !hasZPG && bottleneckBGorRO)) {
+          result.push("ZPG");
+        }
         return result;
       }
       return [];
--- a/client/src/components/importconfiguration/types/WaterwayProfiles.vue	Fri Jun 18 11:58:43 2021 +0200
+++ b/client/src/components/importconfiguration/types/WaterwayProfiles.vue	Fri Jun 18 12:05:57 2021 +0200
@@ -159,8 +159,7 @@
       this.uploadFile = files[0];
     },
     submit() {
-      if (!this.url || !this.featureType || !this.uploadFile)
-        return;
+      if (!this.url || !this.featureType || !this.uploadFile) return;
       let formData = new FormData();
       formData.append("wp", this.uploadFile);
       formData.append("url", this.url);