Skip to content

Commit b4bbb07

Browse files
authored
fix(grid): fix grid error when columns config from null change to empty array (#3817)
1 parent 01f4a8d commit b4bbb07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vue/src/grid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opentiny/vue-grid",
33
"type": "module",
4-
"version": "3.27.0",
4+
"version": "3.27.1",
55
"description": "",
66
"license": "MIT",
77
"sideEffects": false,

packages/vue/src/grid/src/composable/useHeader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const calcHeader = (collectColumn) => {
2121

2222
traverseTree(item.children, level + 1, item)
2323
})
24-
} else {
24+
} else if (parent) {
2525
leafColumns.push(parent)
2626
}
2727
}

0 commit comments

Comments
 (0)