diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js index 8023b59be1..6ae24f20dd 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js @@ -236,9 +236,11 @@ var abp = abp || {}; var $actionContainer = _createRowAction(aData, column.rowAction, tableInstance); hideEmptyColumn($actionContainer, tableInstance, colIndex); - var $actionButton = $(cells[colIndex]).find(".abp-action-button"); - if ($actionButton.length === 0) { - $(cells[colIndex]).empty().append($actionContainer); + if ($actionContainer) { + var $actionButton = $(cells[colIndex]).find(".abp-action-button"); + if ($actionButton.length === 0) { + $(cells[colIndex]).empty().append($actionContainer); + } } } }