Skip to content

Commit

Permalink
Merge pull request #7596 from wenzhixin/fix/7588
Browse files Browse the repository at this point in the history
Fixed column is undefined bug in updateFieldGroup when using refreshOptions
  • Loading branch information
wenzhixin authored Nov 5, 2024
2 parents f18efe7 + f32bdd1 commit 2c24feb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ export default {
const underColumns = allColumns.filter(col => col.fieldIndex === i)
const column = underColumns[underColumns.length - 1]

if (!column) {
continue
}

if (underColumns.length > 1) {
for (let j = 0; j < underColumns.length - 1; j++) {
underColumns[j].visible = column.visible
Expand Down

0 comments on commit 2c24feb

Please sign in to comment.