I’m seeing a strange behavior on my app blocks where previously saved setting values are not being displayed on the settings section in the theme editor. When I check the code for the template being used on the page, I can see the previously saved values in the app blocks’ settings; however, the theme editor UI fails to display them. Saving the theme editor essentially wipes out any existing setting values as the UI perceives all of the values as being null.
Example app block setting:
{% schema %}
{
"name": "Example Block",
"target": "section",
"javascript": "example-block.js",
"settings": [
{
"type": "textarea",
"id": "settingId",
}
]
}
{% endschema %}
Example code for template used on page:
"blocks": {
"{app-block-hash}": {
"type": "shopify:\/\/apps\/app-name\/blocks\/example-block\/{hash}",
"settings": {
"settingId": "example value here"
}
}
}
I’m using fake values above, but essentially I would expect “example value here” to be populated in the Example Block’s setting for the textarea “settingId”. However, all settings (for all input types) come back as null.