Boolean is in array so can't be used for check

I try to only run something when the boolean just pulled in my query is true. However I can't seem to get the boolean out of the array.

Other fields in the query like strings also show up as array when I select them but they will still show the text.

Please see the image.

Hello! Welcome to the forums @Bechris_60

If special_status always only has one item in the array, you could just use {{ productDetailQuery.data.special_status[0] }}

2 Likes

Thanks for reaching out, @Bechris_60! If you can confirm that there will only ever be one element in the array, then @pyrrho's recommendation above will solve your problem. :+1:

Let us know if that's not the case and we can figure out an alternative for you!

Have you had a chance to review this, @Bechris_60? It should be a pretty easy fix if you're still having issues!