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)
This commit is contained in:
Bryan Housel
2015-06-09 23:26:36 -04:00
parent 9311ee64ab
commit 5799b7fc33

View File

@@ -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)