#173 error calling SymDiff: arguments must be slices or arrays

Closed
opened 1 month ago by jhabdas · 0 comments
jhabdas commented 1 month ago

Introduction of Featured Posts in version 9.0.0 introduced an error generating site when featured posts aren’t defined in site configuration:

Error: Error building site: failed to render pages: render of "section" failed: "/home/jos/Developer/derp/flying-toasters/themes/after-dark/layouts/post/list.html:58:41": execute of template failed: template: post/list.html:58:41: executing "main" at <collections.SymDiff>: error calling SymDiff: arguments must be slices or arrays

Error occurs when one either of the two arguments passed to collections.SymDiff is nil which was occurring for new sites and sites without feature configuration defined. Given feature is optional the absence of the feature config should not result in an error.

Introduction of [Featured Posts](https://after-dark.habd.as/feature/featured-posts/) in version 9.0.0 introduced an error generating site when featured posts aren't defined in site configuration: ```term Error: Error building site: failed to render pages: render of "section" failed: "/home/jos/Developer/derp/flying-toasters/themes/after-dark/layouts/post/list.html:58:41": execute of template failed: template: post/list.html:58:41: executing "main" at <collections.SymDiff>: error calling SymDiff: arguments must be slices or arrays ``` Error occurs when one either of the two arguments passed to `collections.SymDiff` is `nil` which was occurring for new sites and sites without feature configuration defined. Given feature is optional the absence of the feature config should not result in an error.
jhabdas added the
bug
label 1 month ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.