You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently, there is a little bug in DeliveryMap.js when markers is null at lines 21 and 40. It is not checking for null.
line 21: if (map.addedMarkers.length !== markers.length){
line 40: markers.forEach((marker, index) => {
So, I changed line 21 to: if ((map.addedMarkers && markers) && (map.addedMarkers.length !== markers.length)) {
and added a condition for the else at line 39: else if (markers) {
It works perfect now.
The text was updated successfully, but these errors were encountered:
Apparently, there is a little bug in DeliveryMap.js when markers is null at lines 21 and 40. It is not checking for null.
line 21:
if (map.addedMarkers.length !== markers.length){
line 40:
markers.forEach((marker, index) => {
So, I changed line 21 to:
if ((map.addedMarkers && markers) && (map.addedMarkers.length !== markers.length)) {
and added a condition for the else at line 39:
else if (markers) {
It works perfect now.
The text was updated successfully, but these errors were encountered: