Skip to content

Commit

Permalink
Clear view in current session when resetting manually
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Nov 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 863b0d8 commit eddb8e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/class-controller.php
Original file line number Diff line number Diff line change
@@ -112,6 +112,7 @@ public function init() {
*/
if ( VAA_API::is_request( 'reset-view', 'get' ) ) {
$this->reset_view();
$this->store->set_view( array() );
}
/**
* Clear all user views.
@@ -121,6 +122,7 @@ public function init() {
*/
if ( VAA_API::is_request( 'reset-all-views', 'get' ) ) {
$this->reset_all_views();
$this->store->set_view( array() );
}
}

0 comments on commit eddb8e3

Please sign in to comment.