routes: slider changes

This commit is contained in:
muerwre 2018-12-13 17:48:15 +07:00
parent a3b04173d0
commit 3562c04dc8
6 changed files with 12 additions and 6 deletions

View file

@ -44,4 +44,5 @@ export const getRouteList = ({
params: {
title, distance, author, starred
}
}).then(result => (result && result.data && result.data.success && result.data)).catch(() => ([]));
}).then(result => (result && result.data && result.data.success && result.data))
.catch(() => ({ list: [], min: 0, max: 0 }));