Skip to content

Commit

Permalink
Force inspector to recreate all of its content after a save
Browse files Browse the repository at this point in the history
(closes #3844)
  • Loading branch information
bhousel committed Mar 3, 2017
1 parent cd23d76 commit 014b580
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/modes/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 014b580

Please sign in to comment.