Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 932750c

Browse files
committed
Correct Ajax call
1 parent 30b3e47 commit 932750c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-datatables.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
options.aoColumns = $scope.dtColumns;
2929
}
3030

31-
if (angular.isDefined(options.dataPromise)) {
31+
if (angular.isObject(options.dataPromise)) {
3232
options.dataPromise.then(function(data) {
3333
options.aaData = data;
3434
_renderDataTable($elem, options);

0 commit comments

Comments
 (0)