Skip to content

Commit

Permalink
clone the defaults before saving them, otherwise we will probably get…
Browse files Browse the repository at this point in the history
… old state when refreshing to defaults
  • Loading branch information
Spencer Alger committed Apr 24, 2014
1 parent f7ccc62 commit 543bcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kibana/components/state_management/global_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ define(function (require) {

globalState._setApp = function (newAppState, defaults) {
app.current = newAppState;
app.defaults = defaults;
app.defaults = _.cloneDeep(defaults);
app.name = $route.current.$$route.originalPath;
app.listeners = [];

Expand Down

0 comments on commit 543bcd9

Please sign in to comment.