From b9a3d74fbb620f39a7f2b2b01cf6aed271f32901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Wed, 11 Mar 2020 19:04:56 +0100 Subject: [PATCH] fix: lint errors --- frontend/src/store/context/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/store/context/actions.js b/frontend/src/store/context/actions.js index bc644a688c..38fb03dc6e 100644 --- a/frontend/src/store/context/actions.js +++ b/frontend/src/store/context/actions.js @@ -19,9 +19,9 @@ export function fetchContext() { return dispatch => api .fetchAll() - .then(json => { + .then(json => { json.sort((a, b) => a.sortOrder - b.sortOrder); - dispatch(receiveContext(json)) + dispatch(receiveContext(json)); }) .catch(dispatchAndThrow(dispatch, ERROR_RECEIVE_CONTEXT)); }