- Issue created by @spicy.werewolf
Using props in this component is causing too many issues with template logic, and forcing less-than-optimal workarounds.
Create a stat list or any component with a stat. Leave the fields blank and hit save. The surrounding markup we'd want to exclude from rendering gets rendered anyway bc SDCs won't permit a null value, and even if you force it with a mixed "type" property, it doesn't allow for using simple intuitive template variable checks.
Pull the props out of the stat sdc. Refactor the case study preprocess function and get all of the steps that are forcing field values, and forcing non-empty arrays, so when there are no stats in the component's content, it won't break anything, _and_ won't print unwanted markup.
Active
2.0
Code