1

In disconnected mode I have a "value" that I don't have in connected mode. So if I need to do this: {{ fields.items.value.length }} it's working only in disconnected mode and not after a deploy...

Disconnected (fields.items.value.length): enter image description here

Connected (fields.items.length): enter image description here

What can I do ? Thanks!

3

This is a bug in JSS tech preview 3. (one that I actually fixed yesterday!) It will be fixed in the next release.

In the meantime as a workaround, something like const items = Array.isArray(fields.items) ? fields.items : fields.items.value; or const items = fields.items.value || fields.items; should do the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.