Mercurial > gemma
comparison client/src/store/bottlenecks.js @ 1535:b4b3dfd24739
client: fix codestyle warning
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 07 Dec 2018 16:45:43 +0100 |
parents | 6b3756676bbe |
children | 97bdcee1d4c0 |
comparison
equal
deleted
inserted
replaced
1534:165f31b71042 | 1535:b4b3dfd24739 |
---|---|
76 "X-Gemma-Auth": localStorage.getItem("token"), | 76 "X-Gemma-Auth": localStorage.getItem("token"), |
77 "Content-type": "text/xml; charset=UTF-8" | 77 "Content-type": "text/xml; charset=UTF-8" |
78 } | 78 } |
79 }) | 79 }) |
80 .then(response => { | 80 .then(response => { |
81 const surveys = response.data.surveys.sort((a, b) => | 81 const surveys = response.data.surveys.sort( |
82 a.date_info < b.date_info ? 1 : -1 | 82 (a, b) => (a.date_info < b.date_info ? 1 : -1) |
83 ); | 83 ); |
84 commit("setSurveys", surveys); | 84 commit("setSurveys", surveys); |
85 resolve(response); | 85 resolve(response); |
86 }) | 86 }) |
87 .catch(error => { | 87 .catch(error => { |