comparison client/src/store/bottlenecks.js @ 1536:97bdcee1d4c0

Backed out changeset b4b3dfd24739 * Address the reverse warning.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 07 Dec 2018 16:49:31 +0100
parents b4b3dfd24739
children de4e4dcb8f87
comparison
equal deleted inserted replaced
1535:b4b3dfd24739 1536:97bdcee1d4c0
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( 81 const surveys = response.data.surveys.sort((a, b) =>
82 (a, b) => (a.date_info < b.date_info ? 1 : -1) 82 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 => {