Geoportail-Luxembourg / geoportailv3

geoportailv3 is the implementation of the v3 of the map viewer of the luxembourgish geoportal
MIT License
25 stars 16 forks source link

TypeError: Cannot read property 'length' of undefined #275

Closed elemoine closed 9 years ago

elemoine commented 9 years ago

I am seeing this error in the console:

 TypeError: Cannot read property 'length' of undefined
    at wj.d (build.js:513)
    at fb.functionCall (build.js:203)
    at Object.<anonymous> (build.js:113)
    at k.$get.k.$digest (build.js:128)
    at k.$get.k.$apply (build.js:131)
    at m (build.js:86)
    at N (build.js:91)
    at XMLHttpRequest.w.onload (build.js:92)

The error occurs in Angular.

I cannot debug this now because the debug mode is broken, but this is a problem we need to address, sooner rather than later.

pgiraud commented 9 years ago

Not sure but this may be related to the fact that in https://github.com/Geoportail-Luxembourg/geoportailv3/blob/master/geoportailv3/static/js/catalog/catalogdirective.js#L60 items should be changed to themes

If so, should be fixed with https://github.com/Geoportail-Luxembourg/geoportailv3/pull/276

elemoine commented 9 years ago

I just tested with my elemoine_themes branch (the one attached to #276) and the js error still occurred. So it looks like the problem is elsewhere.

rmichaelis commented 9 years ago

solved by merging #278

pgiraud commented 9 years ago

Closing.