comparison client/src/store/bottlenecks.js @ 1480:9b81ac91a43e

fix: linting
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 04 Dec 2018 10:02:31 +0100
parents b350b0b5cb6c
children 53fdbe1d9678
comparison
equal deleted inserted replaced
1479:858af4614209 1480:9b81ac91a43e
98 "X-Gemma-Auth": localStorage.getItem("token"), 98 "X-Gemma-Auth": localStorage.getItem("token"),
99 "Content-type": "text/xml; charset=UTF-8" 99 "Content-type": "text/xml; charset=UTF-8"
100 } 100 }
101 }) 101 })
102 .then(response => { 102 .then(response => {
103 const surveys = response.data.surveys.sort( 103 const surveys = response.data.surveys.sort((a, b) =>
104 (a, b) => (a.date_info < b.date_info ? 1 : -1) 104 a.date_info < b.date_info ? 1 : -1
105 ); 105 );
106 commit("selectedSurvey", surveys[0]); 106 commit("selectedSurvey", surveys[0]);
107 commit("setSurveys", surveys); 107 commit("setSurveys", surveys);
108 }) 108 })
109 .catch(error => { 109 .catch(error => {