With multisite enabled, the isapp/statamic-analytics addon had two problems:
Frontend: The Vue component expected initialValues.sites to be an array, but the backend sent a single object. That led to TypeError: Cannot read properties of undefined (reading 'map') when clicking Save.
Backend: The update handler expected $values['sites'] when multisite was on, but the form submits flat values (no sites key), so the save logic failed.
With multisite enabled, the isapp/statamic-analytics addon had two problems:
Frontend: The Vue component expected initialValues.sites to be an array, but the backend sent a single object. That led to TypeError: Cannot read properties of undefined (reading 'map') when clicking Save.
Backend: The update handler expected $values['sites'] when multisite was on, but the form submits flat values (no sites key), so the save logic failed.