Commit fea7b9e6 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fix diff commenting on commits

parent ff7b545c
...@@ -18,7 +18,7 @@ class Diff { ...@@ -18,7 +18,7 @@ class Diff {
}); });
const tab = document.getElementById('diffs'); const tab = document.getElementById('diffs');
if (tab && !Object.hasOwnProperty.call(tab.dataset, 'isLocked')) FilesCommentButton.init($diffFile); if (!tab || (tab && !Object.hasOwnProperty.call(tab.dataset, 'isLocked'))) FilesCommentButton.init($diffFile);
$diffFile.each((index, file) => new gl.ImageFile(file)); $diffFile.each((index, file) => new gl.ImageFile(file));
......
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