ui shouldn't crash if starting on a dynamic location or position

This commit is contained in:
Laura Klünder 2019-12-28 19:21:30 +01:00
parent 3c9fd6fb60
commit 6f4db73a8f

View file

@ -662,7 +662,7 @@ c3nav = {
if ((a.origin && a.origin.id) !== (b.origin && b.origin.id)) return false;
if ((a.destination && a.destination.id) !== (b.destination && b.destination.id)) return false;
if (a.level !== b.level || a.zoom !== b.zoom) return false;
if (a.center[0] !== b.center[0] || a.center[1] !== b.center[1]) return false;
if (!!a.center !== !!b.center || a.center[0] !== b.center[0] || a.center[1] !== b.center[1]) return false;
return true;
},
_build_state_url: function (state, embed) {