primocms / primo

Primo is a visual CMS with a built-in code editor, Svelte blocks, and static site generator.
https://primocms.org
MIT License
1.92k stars 474 forks source link

Cannot edit "Join us on our mission" block #379

Open CMDJojo opened 3 months ago

CMDJojo commented 3 months ago

I cannot edit the "Join us on our mission" block on the non-profit template, not when entering edit mode nor when editing in-line. This is the effects I am experiencing:

When going to edit mode and press "save", the block isn't saved as usual, rather I get this error:

Uncaught (in promise) TypeError: z.find(...) is undefined
    te ComponentEditor.svelte:272
    te ComponentEditor.svelte:271
    te ComponentEditor.svelte:270
    u ModalHeader.svelte:60
    ut index.mjs:463
    m ModalHeader.svelte:65
    m ModalHeader.svelte:80
    re index.mjs:2097
    m ComponentEditor.svelte:320
    m ComponentEditor.svelte:370
    re index.mjs:2097
    m Primo.svelte:120
[...]
ComponentEditor.svelte:272:35
    te ComponentEditor.svelte:326
    u ModalHeader.svelte:60
    (Async: EventListener.handleEvent)
    ut index.mjs:463
    m ModalHeader.svelte:65
    m ModalHeader.svelte:80
    re index.mjs:2097
[...]

The cell isn't closed but rather clicking "save" doesn't do anything visually. When pressing the "x" I get warning about unsaved changes, and the changes are lost.

When editing the cell in-line (directly when previewing the site), it seems like the edit goes through visually but as soon as I navigate from the page or reload the page, the changes are lost. The console repeats the error above.

For reference, here is how the block looks like from the template: image

It doesn't work on my site, and I added a new site with the same template to verify, and it doesn't work there either.

Edit Running on latest version of Primo on a self-managed Vercel instance