Commit 0d3cdf12 authored by JC Brand's avatar JC Brand

Bugfix. Don't query on non-existent class

parent d04a7df2
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
}, },
onBookmarked () { onBookmarked () {
const icon = this.el.querySelector('.icon-pushpin'); const icon = this.el.querySelector('.toggle-bookmark');
if (_.isNull(icon)) { if (_.isNull(icon)) {
return; return;
} }
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
_.forEach(models, function (model) { _.forEach(models, function (model) {
model.destroy(); model.destroy();
}); });
this.el.querySelector('.icon-pushpin').classList.remove('button-on'); this.el.querySelector('.toggle-bookmark').classList.remove('button-on');
} }
} }
} }
......
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