Skip to content

"unless" breaks when "each" value equals "null" #1319

@jeremykentbgross

Description

@jeremykentbgross

When using "each" over either an object or an array and a null value is encountered, "unless" will destroy the context, replacing the null value with an empty object, and dropping parent access all together.

Here is a reproduction test case: https://jsfiddle.net/r33cjjb2/3/

To aid seeing the issue, the failing case renders the following inline: !!!FAIL!!!FAIL!!!FAIL!!!FAIL!!!FAIL!!!FAIL!!!FAIL!!!FAIL!!!FAIL!!!FAIL!!

Looking forward to seeing this fixed. It is a real pain in my @$$ atm. Otherwise thank you for a magnificent tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions