Fix diff commenting on commits
This commit is contained in:
parent
ff7b545c8e
commit
fea7b9e682
|
|
@ -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));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue