-
Notifications
You must be signed in to change notification settings - Fork 136
Description
ProductTemplates have a root field called questions instead of sections. But when we display them in the Metadata Editor we show their JSON with questions replaced with sections:
This most likely happens because of these lines https://github.com/appirio-tech/connect-app/blob/dev/src/routes/metadata/components/MetaDataPanel.jsx#L595-L597
If we edit something in such ProductTemplate JSON and save it, it would be saved with sections root element instead of questions.
For example, if I do it locally for a demo template. When I load it the template it has questions as a root element:
But when I save it, it is saved with sections as a root element:
As a result, on the server we have a product template with two root elements questions and sections.
As client side we use only questions for productTemplates, the change would make effect.



