"Unexpected null value" error when evaluating a conditional for a text widget

Best Practices

Hello,

I'm populating a text widget with data from supabase that contains some null values. This works fine when a Default Variable Value is assigned to the Text Widget.

However, when I try to apply conditional logic to the Text Widget, the widget seems to crash during the conditional logic evaluation, returning an "Unexpected null value" error that causes the page to not render past the first record containing a null value. As best I can tell, it seems the assignment of the Default Variable Value for the Text Widget occurs after the conditional logic is evaluated, so having that set does not help when conditional logic is applied.

Does anyone have experience with this situation or ideas for handling it?

Thank you!

Aaron

3 replies