OrGroup
blockOrGroup
during the process, you can add a simple condition, such as checking a form value or entity field, to avoid the error.This should fix the issue and allow you to successfully publish your changes to the ribbon button.
Cheers!