JavaScript for WordPress › Forums › Gutenberg Development › Conditional statements before/on save › Reply To: Conditional statements before/on save
April 11, 2018 at 2:33 pm
#44939
alantucker
Participant
Thanks, I used const { attributes: { title, message, text=”, url, colorPaletteControl } } = props; which seems to have done the trick. As I dont really need “No link” to be saved is there a tidier way of doing the const and the conditional?
Thanks for all your help?