Skip to content

Commit

Permalink
Fixed column is undefined bug in updateFieldGroup when using refreshO…
Browse files Browse the repository at this point in the history
…ptions
  • Loading branch information
wenzhixin committed Nov 5, 2024
1 parent f18efe7 commit f32bdd1
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 f32bdd1

Please sign in to comment.