-
After reading the guide I couldn't find the answer. What is the simplest way to iterate over something like:
Where some attributes can be Using something as
results in
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
/cc @mkouba (qute) |
Beta Was this translation helpful? Give feedback.
-
You can use default values and safe expressions in order to suppress the error, see also Strict Rendering. In your case, |
Beta Was this translation helpful? Give feedback.
You can use default values and safe expressions in order to suppress the error, see also Strict Rendering. In your case,
{#if attribute.value.size??}
should do the trick. It's a shorthand notation for{#if attribute.value.size.or(null)}
andnull
is considered falsy.