Skip to content

Commit

Permalink
Add missing selector dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Sep 20, 2024
1 parent 1631bfb commit b5476d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const getEnabledClientIdsTree = createSelector(
state.settings.templateLock,
state.blockListSettings,
state.editorMode,
getSectionRootClientId( state ),
]
);

Expand Down
2 changes: 2 additions & 0 deletions packages/block-editor/src/store/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { parse as grammarParse } from '@wordpress/block-serialization-default-pa
import { selectBlockPatternsKey } from './private-keys';
import { unlock } from '../lock-unlock';
import { STORE_NAME } from './constants';
import { getSectionRootClientId } from './private-selectors';

export const withRootClientIdOptionKey = Symbol( 'withRootClientId' );

Expand Down Expand Up @@ -118,5 +119,6 @@ export function getInsertBlockTypeDependants( state, rootClientId ) {
state.settings.templateLock,
state.blockEditingModes,
state.editorMode,
getSectionRootClientId( state ),
];
}

0 comments on commit b5476d9

Please sign in to comment.