Skip to content

Commit

Permalink
Do not display previous post keyphrases in Wincher table
Browse files Browse the repository at this point in the history
  • Loading branch information
KaisZaoualiWincher committed Oct 5, 2023
1 parent caf70d1 commit 6cbd0a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/js/src/redux/selectors/WincherSEOPerformance.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export function hasWincherTrackedKeyphrases( state ) {
export function getWincherTrackableKeyphrases( state ) {
const isPremium = getL10nObject().isPremium;
const premiumStore = window.wp.data.select( "yoast-seo-premium/editor" );
const tracked = Object.keys( getWincherTrackedKeyphrases( state ) || {} ).map( k => k.trim() );
const keyphrases = [ state.focusKeyword.trim(), ...tracked ];
const keyphrases = [ state.focusKeyword.trim() ];

if ( isPremium && premiumStore ) {
// eslint-disable-next-line no-undefined
Expand Down

0 comments on commit 6cbd0a9

Please sign in to comment.