Skip to content

Commit

Permalink
Editor: Reset posts queries for site upon navigating to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Jan 19, 2016
1 parent f389f89 commit 18df734
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/post-editor/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var actions = require( 'lib/posts/actions' ),
titleActions = require( 'lib/screen-title/actions' ),
sites = require( 'lib/sites-list' )(),
user = require( 'lib/user' )(),
resetPostsQueries = require( 'state/posts/actions' ).resetPostsQueries,
setSection = require( 'state/ui/actions' ).setSection,
analytics = require( 'analytics' );

Expand Down Expand Up @@ -106,6 +107,8 @@ module.exports = {
return;
}

context.store.dispatch( resetPostsQueries( site.ID ) );

let titleStrings;
if ( 'page' === postType ) {
titleStrings = {
Expand Down

0 comments on commit 18df734

Please sign in to comment.