mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Fix JS error on clicking feature search result (close #7359)
This commit is contained in:
@@ -150,7 +150,7 @@ export function coreContext() {
|
||||
|
||||
context.zoomToEntity = (entityID, zoomTo) => {
|
||||
if (zoomTo !== false) {
|
||||
this.loadEntity(entityID, (err, result) => {
|
||||
context.loadEntity(entityID, (err, result) => {
|
||||
if (err) return;
|
||||
const entity = result.data.find(e => e.id === entityID);
|
||||
if (entity) {
|
||||
|
||||
Reference in New Issue
Block a user