Force inspector to recreate all of its content after a save

(closes #3844)
This commit is contained in:
Bryan Housel
2017-03-03 01:37:32 -05:00
parent cd23d76875
commit 014b580a44

View File

@@ -212,12 +212,14 @@ export function modeSave(context) {
success(e, changeset_id);
// Add delay to allow for postgres replication #1646 #2678
window.setTimeout(function() {
d3.select('.inspector-wrap *').remove();
loading.close();
context.flush();
}, 2500);
}
});
} else { // changes were insignificant or reverted by user
d3.select('.inspector-wrap *').remove();
loading.close();
context.flush();
cancel();