Clear history immediately when switching sources

This commit is contained in:
Bryan Housel
2017-08-20 12:14:38 -04:00
parent 82f95f850f
commit d667ee6e89

View File

@@ -16,9 +16,8 @@ export function uiSourceSwitch(context) {
var live = d3.select(this)
.classed('live');
context.connection()
.switch(live ? keys[1] : keys[0]);
context.history().clearSaved();
context.connection().switch(live ? keys[1] : keys[0]);
context.enter(modeBrowse(context));
context.flush();