JavaScript for WordPress Forums Gutenberg Development Conditional statements before/on save Reply To: Conditional statements before/on save

#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?