+ Fix js error of repo.

This commit is contained in:
zhaoke
2023-07-28 15:31:36 +08:00
parent 606fa8845b
commit 3bdcc663df
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -115,7 +115,8 @@ window.diffClick = function()
window.canRowCheckable = function(rowID)
{
const dtable = zui.DTable.query('#repo-comments-table');
var data = dtable.$.props.data;
if(dtable == undefined) return;
var data = dtable.$.props.data;
if(data.length == 0) return true;
+2 -1
View File
@@ -34,7 +34,8 @@ window.checkedChange = function(changes)
window.canRowCheckable = function(rowID)
{
const dtable = zui.DTable.query('#repo-logs-table');
var data = dtable.$.props.data;
if(dtable == undefined) return;
var data = dtable.$.props.data;
if(data.length == 0) return true;