fix: change the way to judge whether an array is empty

This commit is contained in:
gx 2021-03-16 20:12:52 +08:00
parent b0914c928e
commit b98ef9d4e8
5 changed files with 5 additions and 5 deletions

View File

@ -286,7 +286,7 @@ function sort(Table, Icon) {
var sort = _this3.props.sort;
var seleObj = void 0;
if (!oldData) {
if (!oldData.length) {
oldData = data.concat();
}
var sortCol = void 0;

2
dist/demo.js vendored
View File

@ -301209,7 +301209,7 @@
var sort = _this3.props.sort;
var seleObj = void 0;
if (!oldData) {
if (!oldData.length) {
oldData = data.concat();
}
var sortCol = void 0;

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "2.3.15-beta.10",
"version": "2.3.15-beta.11",
"description": "Table ui component for react",
"keywords": [
"react",

View File

@ -188,7 +188,7 @@ export default function sort(Table, Icon) {
let { data, oldData = [], flatColumns } = this.state;
let { sort } = this.props;
let seleObj;
if (!oldData) {
if (!oldData.length) {
oldData = data.concat();
}
let sortCol ;