Fixed bug when moving list

This commit is contained in:
Phil Hughes 2016-08-17 14:43:50 +01:00
parent 5e0b2941c7
commit 7e4c70ec4c
2 changed files with 1 additions and 2 deletions

View file

@ -73,7 +73,7 @@
}, },
moveList (listFrom, orderLists) { moveList (listFrom, orderLists) {
orderLists.forEach((id, i) => { orderLists.forEach((id, i) => {
const list = this.findList('id', id); const list = this.findList('id', parseInt(id));
list.position = i; list.position = i;
}); });

View file

@ -46,7 +46,6 @@ const BoardsMockData = {
Vue.http.interceptors.push((request, next) => { Vue.http.interceptors.push((request, next) => {
const body = BoardsMockData[request.method][request.url]; const body = BoardsMockData[request.method][request.url];
console.log(request.url);
next(request.respondWith(JSON.stringify(body), { next(request.respondWith(JSON.stringify(body), {
status: 200 status: 200