Skip to content

Commit

Permalink
Fix contextual commands selectors (#50829)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 22, 2023
1 parent 119a279 commit 166256e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/commands/src/store/selectors.js
Expand Up @@ -10,7 +10,7 @@ export const getCommands = createSelector(
command.context && command.context === state.context;
return contextual ? isContextual : ! isContextual;
} ),
( state ) => [ state.commands ]
( state ) => [ state.commands, state.context ]
);

export const getCommandLoaders = createSelector(
Expand All @@ -20,7 +20,7 @@ export const getCommandLoaders = createSelector(
loader.context && loader.context === state.context;
return contextual ? isContextual : ! isContextual;
} ),
( state ) => [ state.commandLoaders ]
( state ) => [ state.commandLoaders, state.context ]
);

export function isOpen( state ) {
Expand Down

1 comment on commit 166256e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 166256e.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5046071983
📝 Reported issues:

Please sign in to comment.