Hello, we're having an issue with some fields in slices created using Slice Machine.
When we add a slice using the visual editor, many select and boolean fields have a default value, however when the new document is saved (leaving these default values selected and unchanged), the response from the Prismic API for these fields is
null, rather than the default value (true/false, or the value in the select field).
The only way to fix it is to select a different value, save the document, change it back to the first value and save the document again.
We can work around the issue by treating a
null response as if it's the default value, but it would be great if the API matched what's selected in the visual editor. Is there anything we could be doing wrong that's causing this?
Here you can see
dark__green is the default selection, but the slice returned from Prismic has the value
Any help would be much appreciated!