Skip to content

branch 2.0-frozenRowsAndColumns : this.data.length undefined #88

@hafizchin

Description

@hafizchin

this.data in slick.grid.js function setFrozenOptions() can sometimes be null, so calling this.data.length will cause a javascript error.

probably you can update the code to avoid this scenario.

current : var dataLength = getDataLength() || this.data.length;
proposed: var dataLength = getDataLength() || (this.data || []).length;

by the way, thank you for adding this feature in slickgrid 👍

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