Skip to content

Commit

Permalink
Merge pull request #1748 from VisActor/1747-bug-settablecolumnseditor…
Browse files Browse the repository at this point in the history
…-error

1747 bug settablecolumnseditor error
  • Loading branch information
fangsmile committed May 21, 2024
2 parents ad054db + 8d5b6ba commit 63e6e5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: setTableColumnsEditor occor error when not set columns #1747\n\n",
"type": "none",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/vtable/src/header-helper/header-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class HeaderHelper {

setTableColumnsEditor() {
const setEditor = (colDefines: ColumnsDefine, setColumns: ColumnsDefine) => {
colDefines.forEach((colDefine, index) => {
colDefines?.forEach((colDefine, index) => {
if (colDefine.editor) {
setColumns[index].editor = colDefine.editor;
}
Expand Down

0 comments on commit 63e6e5e

Please sign in to comment.