mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-29 07:06:04 +02:00
Don't suggest adding a relation to itself (fixes #1820)
This commit is contained in:
@@ -46,7 +46,7 @@ iD.ui.RawMembershipEditor = function(context) {
|
||||
graph = context.graph();
|
||||
|
||||
context.intersects(context.extent()).forEach(function(entity) {
|
||||
if (entity.type !== 'relation')
|
||||
if (entity.type !== 'relation' || entity.id === id)
|
||||
return;
|
||||
|
||||
var presetName = context.presets().match(entity, graph).name(),
|
||||
|
||||
Reference in New Issue
Block a user