Skip to content

Commit

Permalink
[Inserter]: Fix onHover error on patterns tab in mobile (#49450)
Browse files Browse the repository at this point in the history
Co-authored-by: George Mamadashvili <[email protected]>
  • Loading branch information
ntsekouras and Mamaduka authored Mar 30, 2023
1 parent 7547ad4 commit 83d4e16
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import BlockPatternList from '../block-patterns-list';
import PatternsExplorerModal from './block-patterns-explorer/explorer';
import MobileTabNavigation from './mobile-tab-navigation';

const noop = () => {};

// Preferred order of pattern categories. Any other categories should
// be at the bottom without any re-ordering.
const patternCategoriesOrder = [
Expand Down Expand Up @@ -134,7 +136,7 @@ export function BlockPatternsCategoryDialog( {
export function BlockPatternsCategoryPanel( {
rootClientId,
onInsert,
onHover,
onHover = noop,
category,
showTitlesAsTooltip,
} ) {
Expand Down

0 comments on commit 83d4e16

Please sign in to comment.