angularjs-table icon indicating copy to clipboard operation
angularjs-table copied to clipboard

Cannot read property 'forEach' of undefined

Open felixfrtz opened this issue 7 years ago • 4 comments

Hey,

I am just starting out with this library and can't get rid of this TypeError:

TypeError: Cannot read property 'forEach' of undefined at updateSortPriority (ap-mesa.js:575)

Any ideas what the cause might be?

felixfrtz avatar Dec 07 '17 09:12 felixfrtz

I get the same thing. The updateSortPriority function is trying to iterate over scope.enabledColumns Not sure what that's about.

pwarelis avatar Dec 10 '17 23:12 pwarelis

This happens when your columns attribute is not defined

pwarelis avatar Dec 10 '17 23:12 pwarelis

Hm strange, it is defined. Leaving it for now, since everything works fine.

felixfrtz avatar Dec 13 '17 09:12 felixfrtz

@warhost does your columns array get defined after the table has been compiled and linked? This may be a minor bug in the library.

andyperlitch avatar Dec 13 '17 18:12 andyperlitch