Issue with creating a gallery block in a page builder for a client.
Last updated: Apr 1, 2020
hi all, currently trying to make a page builder for a client, i’m trying to make a gallery block for them that contains an object with a caption, alt text and the image. When i try add this block, i get this error:
Uncaught Error: Invalid item type: "[object Object]". Default array input can only contain objects (for now)
Is there a way around the array of arrays?
Apr 1, 2020, 9:47 AM
Hi Ste! This is to guard against multidimensional arrays until they get proper support. Wrapping the nested array in an
type should give you a way around it. Let me know if you need some help with this — if so, it would be helpful if you could share the gallery code 👍
Apr 1, 2020, 9:53 AM
, i’ve tried the nested object but it only seems to let me create 1 image for a