mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Fix unknown entity error on delete
This commit is contained in:
@@ -150,8 +150,8 @@ iD.modes.Select = function(context, selection) {
|
||||
var s = iD.util.entitySelector(selection);
|
||||
|
||||
selection.forEach(function(id) {
|
||||
var entity = context.entity(id);
|
||||
if (entity.type === 'relation') {
|
||||
var entity = context.hasEntity(id);
|
||||
if (entity && entity.type === 'relation') {
|
||||
entity.members.forEach(function(member) {
|
||||
s += ',.' + member.id
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user