-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block Style Previews: Fix block style previews with an upgrade nudge (#…
…14730) * Fix block style previews with an upgrade nudge When an upgrade nudge is to be displayed, the block `example` setting is removed and threw up a bug where we were calling `createBlock` with the incorrect arguments. With that fixed it still meant that the block previews had the nudge rendered. This change gets around that by defining an additional attribute an the created block, and not displaying the nudge if that attribute is found to be `true`. * Updated attribute name and swapped to using coalesce operator
- Loading branch information
Showing
3 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters