Skip to content

Commit

Permalink
Reset Models/ Components when resetting layout (#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Skov Madsen committed Jul 27, 2021
1 parent 1d34e8c commit 88b9996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions panel/template/fast/grid/fast_grid_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@
this.setState({
layouts: {{ layouts }}
});
window.location.href = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search;
}
onLayoutChange(layout, layouts)
{
Expand Down
1 change: 1 addition & 0 deletions panel/template/react/react.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
this.setState({
layouts: {{ layouts }}
});
window.location.href = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search;
}

onLayoutChange(layout, layouts)
Expand Down

0 comments on commit 88b9996

Please sign in to comment.