Skip to content

filterBy not distinguish positive and negative number #143

@dmiorandi

Description

@dmiorandi

Considering this code

block in orderjson.Blocks | filterBy: ['ID_Block']: block_NM.ID_Block

if ID_Block have on array values [1, -1,3,5] and filter is set to 1.
I expect to print just first value, but filter print also -1 because comparision consider 1,-1 the same.

On the flipside of the coin, using only positive values it works fine (no duplicates).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions