Commit 22f2f231 authored by Phil Hughes's avatar Phil Hughes

Fixed JS error when trying to remove list that wasnt defined

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