Closed gburgett closed 4 years ago
Currently, in the page sections array, if a content editor unpublishes a section and it's still linked to by the page, then the sections array will include a nil:
> Page.sections [<SectionBlockText>, <SectionBlockText>, nil] > Page.sections.length 3
Proposal: At the model layer, strip out nils in linked arrays.
> Page.sections [<SectionBlockText>, <SectionBlockText>] > Page.sections.length 2
Currently, in the page sections array, if a content editor unpublishes a section and it's still linked to by the page, then the sections array will include a nil:
Proposal: At the model layer, strip out nils in linked arrays.