From 5799b7fc33e35117b0afb123c1940d634263e254 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 9 Jun 2015 23:26:36 -0400 Subject: [PATCH] Enter Browse mode before switching API server (Because if in Select mode, the selected entity will be missing and cause an error to be thrown) --- js/id/ui/source_switch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/id/ui/source_switch.js b/js/id/ui/source_switch.js index b1b2cb4d0..eb38a2849 100644 --- a/js/id/ui/source_switch.js +++ b/js/id/ui/source_switch.js @@ -13,6 +13,7 @@ iD.ui.SourceSwitch = function(context) { context.connection() .switch(live ? keys[1] : keys[0]); + context.enter(iD.modes.Browse(context)); context.flush(); d3.select(this)