From 166256ed6c18d409f31fcefdf9b235d8666d2f3a Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Mon, 22 May 2023 13:57:52 +0100 Subject: [PATCH] Fix contextual commands selectors (#50829) --- packages/commands/src/store/selectors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/commands/src/store/selectors.js b/packages/commands/src/store/selectors.js index 7aba1ba9fb7cf..9795a87dc8631 100644 --- a/packages/commands/src/store/selectors.js +++ b/packages/commands/src/store/selectors.js @@ -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( @@ -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 ) {