Skip to content

Commit

Permalink
Fix contextual commands selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 22, 2023
1 parent 0b6a426 commit 6f98457
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

0 comments on commit 6f98457

Please sign in to comment.