Skip to content

Table 重置 data = [], columns = [], 报错 #908

@j4dream

Description

@j4dream

if (this._isMounted && data !== this.props.data && !columns[0].reserveSelection) {

// 类似操作
setTimeout(() => {
this.setState({
columns: [],
data: [],
});
}, 3000);

Table 重置 data = [], columns = [], 此时 columns[0] 为 undefined .
TypeError: Cannot read property 'reserveSelection' of undefined 然后显示白屏。

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