Mercurial > gemma
changeset 2169:f6380bbdb853
Fix selection of isrs location code for stretch creation.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 08 Feb 2019 15:43:33 +0100 |
parents | b868cb653c4d |
children | 3bfe48e32f20 |
files | client/src/components/ImportStretches.vue |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue Fri Feb 08 15:39:17 2019 +0100 +++ b/client/src/components/ImportStretches.vue Fri Feb 08 15:43:33 2019 +0100 @@ -483,9 +483,6 @@ message: `${status}: ${data.message || data}` }); }); - }, - sanitizeRHM(rhm) { - return rhm.replace(/,|\(|\)/g, ""); } }, watch: { @@ -495,7 +492,7 @@ }; const distanceMark = this.identifiedFeatures.filter(filterDistanceMarks); if (distanceMark.length > 0) { - const value = this.sanitizeRHM(distanceMark[0]["id_"].split(".")[1]); + const value = distanceMark[0].getProperties()["isrs_astext"]; this.startrhm = this.pipetteStart ? value : this.startrhm; this.endrhm = this.pipetteEnd ? value : this.endrhm; this.pipetteStart = false;