Skip to content

Commit 3ee04a7

Browse files
only show the blocks tour when triggered
1 parent a491b5a commit 3ee04a7

File tree

1 file changed

+1
-1
lines changed
  • src/components/guided-modal-tour/tours

1 file changed

+1
-1
lines changed

src/components/guided-modal-tour/tours/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createInterpolateElement } from '@wordpress/element'
66
export const blocks = {
77
condition: () => { // If provided, true will show the tour (even if it's already done), false will not show the tour, null will show the tour only once.
88
// Force show the tour if there is a GET parameter tour=blocks
9-
return window?.location?.search?.includes( 'tour=blocks' ) ? true : null
9+
return window?.location?.search?.includes( 'tour=blocks' )
1010
},
1111
initialize: () => {
1212
// Add some default content that we will select

0 commit comments

Comments
 (0)