Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New user shown as having empty map #767

Closed
mvl22 opened this issue Apr 27, 2018 · 0 comments
Closed

New user shown as having empty map #767

mvl22 opened this issue Apr 27, 2018 · 0 comments

Comments

@mvl22
Copy link
Member

mvl22 commented Apr 27, 2018

User 2650 at : /admin/users/2650-[their-name]/locations and sometimes others (e.g. 2654) has an empty map.

The console shows a stack trace:

Uncaught TypeError: Cannot read property 'lat' of undefined
    at L.LatLngBounds.getNorth (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:22868)
    at L.LatLngBounds.getNorthWest (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:22848)
    at NewClass.getBoundsZoom (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:23420)
    at NewClass.fitBounds (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:23167)
    at LeafletMap.window.LeafletMap.LeafletMap.setCenter (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:30890)
    at new LeafletMap (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:30805)
    at HTMLDocument.<anonymous> (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:31318)
    at fire (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:3138)
    at Object.fireWith [as resolveWith] (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:3250)
    at Function.ready (application-9f98b08c740eb1bc501a37a32fafbd0d55e0051eade9b7eb8317fa48feb910bb.js:3462)

I suspect this might sometimes happen with a spammy registration, but either way, it shouldn't be causing a blank map with a JS error.

@mvl22 mvl22 reopened this May 14, 2018
@mvl22 mvl22 closed this as completed May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant