Skip to content

Commit 01cdfe4

Browse files
EdifearJLLeitschuh
authored andcommitted
fix(getTemplate): Updated custom templates as promises condition (#5311)
1 parent 8e5d4c4 commit 01cdfe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/services/ui-grid-util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
351351
}
352352

353353
// See if the template is itself a promise
354-
if (template.hasOwnProperty('then')) {
354+
if (angular.isFunction(template.then)) {
355355
return template.then(s.postProcessTemplate);
356356
}
357357

0 commit comments

Comments
 (0)