c3nav.js no exception if there is no grid

This commit is contained in:
Laura Klünder 2018-12-17 18:48:14 +01:00
parent e2698e7109
commit c6d85052f0

View file

@ -1555,7 +1555,7 @@ L.SquareGridLayer = L.Layer.extend({
},
_updateGrid: function(map) {
if (!this.cols.length) return;
if (!this.cols || this.cols.length) return;
var mapSize = map.getSize(),
sidebarStart = $('#sidebar').outerWidth() + 15,
searchHeight = $('#search').outerHeight() + 10,