mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
Fail gracefully when singular selected item disappears
(This was causing a crash in the walkthrough if the user failed to connect Flower Street and the walkthrough removed the new way and restarted the task)
This commit is contained in:
@@ -27,7 +27,7 @@ iD.modes.Select = function(context, selectedIDs) {
|
||||
|
||||
function singular() {
|
||||
if (selectedIDs.length === 1) {
|
||||
return context.entity(selectedIDs[0]);
|
||||
return context.hasEntity(selectedIDs[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user