BigW Consortium Gitlab

Commit 22f2f231 by Phil Hughes

Fixed JS error when trying to remove list that wasnt defined

parent 2cb4231d
......@@ -71,6 +71,9 @@
},
removeList: function (id) {
const list = this.findList('id', id);
if (!list) return;
list.destroy();
this.state.lists = _.reject(this.state.lists, (list) => {
......
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