Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Why does filterFilter take out null values when compared with '' in 1.2.x  #5055

Closed
@gizm0bill

Description

@gizm0bill

example:

var expr = { name: '', email: '', contact: ''},
    array = [
      { email: '[email protected]', name: 'a', contact: null },
      { email: '[email protected]', name: 'b', contact: '' }
    ];
expect( filter( array, expr ) ).toEqual([ array[0], array[1] ]);

will fail in 1.2.x which in some cases should not.
I'm using this SmartTable module in a project, and it fails displaying data in the table because of this new filter behavior, and it shouldn't in this context.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions