# HG changeset patch # User Thomas Junk # Date 1557394270 -7200 # Node ID 3b36bb33f5b0b5f0283abb456a6b29ab2a65ad15 # Parent 861329d535b2a3aee571e85bee84bcf32795c809 available_fairway_depth: omit empty lines after split by newline diff -r 861329d535b2 -r 3b36bb33f5b0 client/.env --- a/client/.env Thu May 09 11:03:21 2019 +0200 +++ b/client/.env Thu May 09 11:31:10 2019 +0200 @@ -11,3 +11,4 @@ #Logos to be potentially loaded by the SPA. Can be left blank. VUE_APP_SECONDARY_LOGO_URL= VUE_APP_LOGO_FOR_PDF_URL= +VUE_APP_SILENCE_TRANSLATIONWARNINGS = diff -r 861329d535b2 -r 3b36bb33f5b0 client/src/main.js --- a/client/src/main.js Thu May 09 11:03:21 2019 +0200 +++ b/client/src/main.js Thu May 09 11:31:10 2019 +0200 @@ -173,12 +173,12 @@ faWindowMaximize, faCrosshairs ); - // register plugins Vue.use(GetTextPlugin, { translations: translations, availableLanguages: supportedLanguages, - defaultLanguage: defaultLanguage + defaultLanguage: defaultLanguage, + silent: process.env.VUE_APP_SILENCE_TRANSLATIONWARNINGS }); Vue.use(Snotify, { toast: { position: SnotifyPosition.centerBottom } }); Vue.use(ToggleButton); diff -r 861329d535b2 -r 3b36bb33f5b0 client/src/store/fairwayavailability.js --- a/client/src/store/fairwayavailability.js Thu May 09 11:03:21 2019 +0200 +++ b/client/src/store/fairwayavailability.js Thu May 09 11:31:10 2019 +0200 @@ -75,7 +75,7 @@ }) .then(response => { const { data } = response; - const csv = data.split("\n"); + const csv = data.split("\n").filter(x => x !== ""); //omit empty lines commit("setLegend", csv.shift()); let transformed = csv.map(e => { const result = e.split(",");