File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/core/src/js/factories Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ angular.module('ui.grid')
686
686
* @param {string } name column name
687
687
*/
688
688
Grid . prototype . getColumn = function getColumn ( name ) {
689
- if ( angular . isFunction ( this . columns . find ) ) {
689
+ if ( this . columns && angular . isFunction ( this . columns . find ) ) {
690
690
return this . columns . find ( function ( column ) {
691
691
return column . colDef . name === name ;
692
692
} ) || null ;
@@ -711,7 +711,7 @@ angular.module('ui.grid')
711
711
* @param {string } name column.field
712
712
*/
713
713
Grid . prototype . getColDef = function getColDef ( name ) {
714
- if ( angular . isFunction ( this . options . columnsDefs . find ) ) {
714
+ if ( this . options . columnsDefs && angular . isFunction ( this . options . columnsDefs . find ) ) {
715
715
return this . options . columnsDefs . find ( function ( colDef ) {
716
716
return colDef . name === name ;
717
717
} ) || null ;
@@ -1106,7 +1106,7 @@ angular.module('ui.grid')
1106
1106
Grid . prototype . getRow = function getRow ( rowEntity , lookInRows ) {
1107
1107
var self = this ;
1108
1108
lookInRows = lookInRows == void 0 ? this . rows : lookInRows ;
1109
- if ( angular . isFunction ( lookInRows . find ) ) {
1109
+ if ( lookInRows && angular . isFunction ( lookInRows . find ) ) {
1110
1110
return lookInRows . find ( function ( row ) {
1111
1111
return self . options . rowEquality ( row . entity , rowEntity ) ;
1112
1112
} ) || null ;
You can’t perform that action at this time.
0 commit comments