From e10bba980f200289076002663dc74de651cb037d Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 27 May 2014 11:25:24 -0700 Subject: [PATCH] Handle cases where current vertex disappears (fixes #2234) --- js/id/ui/preset/restrictions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/id/ui/preset/restrictions.js b/js/id/ui/preset/restrictions.js index ef31b77aa..ae7ec22ef 100644 --- a/js/id/ui/preset/restrictions.js +++ b/js/id/ui/preset/restrictions.js @@ -119,7 +119,9 @@ iD.ui.preset.restrictions = function(field, context) { } function render() { - restrictions(selection); + if (context.hasEntity(vertexID)) { + restrictions(selection); + } } }