Commit 883f65ec authored by Filipa Lacerda's avatar Filipa Lacerda

Fix commit icon

parent 60099d90
...@@ -120,11 +120,11 @@ ...@@ -120,11 +120,11 @@
* TODO: Find a better way to include SVG * TODO: Find a better way to include SVG
*/ */
ready() { ready() {
const commitIconContainer = document.querySelector('.branch-commit .commit-icon-container'); const commitIconContainer = this.$el.querySelector('.commit-icon-container');
const commitIcon = document.querySelector('.commit-icon-svg.hidden svg'); const commitIcon = document.querySelector('.commit-icon-svg.hidden svg');
if (commitIconContainer && commitIcon) { if (commitIconContainer && commitIcon) {
commitIconContainer.appendChild(commitIcon); commitIconContainer.appendChild(commitIcon.cloneNode(true));
} }
}, },
......
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