Commit e9c66be1 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Changed how lists get sorted

parent 948b4828
...@@ -61,6 +61,8 @@ $(() => { ...@@ -61,6 +61,8 @@ $(() => {
} }
}); });
this.state.lists = _.sortBy(this.state.lists, 'position');
Store.addBlankState(); Store.addBlankState();
this.loading = false; this.loading = false;
}); });
......
...@@ -65,6 +65,8 @@ ...@@ -65,6 +65,8 @@
color: label.color color: label.color
} }
}); });
Store.state.lists = _.sortBy(Store.state.lists, 'position');
} }
} }
}); });
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
const list = new List(listObj); const list = new List(listObj);
this.state.lists.push(list); this.state.lists.push(list);
this.state.lists = _.sortBy(this.state.lists, 'position');
return list; return list;
}, },
new (listObj) { new (listObj) {
...@@ -62,6 +60,8 @@ ...@@ -62,6 +60,8 @@
title: 'Welcome to your Issue Board!', title: 'Welcome to your Issue Board!',
position: 0 position: 0
}); });
this.state.lists = _.sortBy(this.state.lists, 'position');
}, },
removeBlankState () { removeBlankState () {
this.removeList('blank'); this.removeList('blank');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment