Skip to content

Commit

Permalink
Convert RichTextData to string when checking slash inserter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Dec 14, 2023
1 parent a937693 commit b91caf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analytics/redux/tracked_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const getBlockInserterUsed = ( originalBlockIds = [], metaData ) => {
'core/paragraph' &&
select( 'core/block-editor' )
.getBlockAttributes( clientIds[ 0 ] )
.content.startsWith( '/' )
.content.toString()
.startsWith( '/' )
) {
return INSERTERS.SLASH_INSERTER;
}
Expand Down

0 comments on commit b91caf0

Please sign in to comment.