Skip to content

Commit

Permalink
Handle no entry options
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Sep 12, 2024
1 parent 3b93cd2 commit 81389c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/models/tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ const nestedEditor = function(cell: any, editorParams: any) {
const row = cell.getRow().getData()
let values = editorParams.options
for (const i of editorParams.lookup_order) {
values = values[row[i]]
values = row[i] in values ? values[row[i]] : []
if (Array.isArray(values)) {
break
}
}
return values
return values ? values : []
}

function find_column(group: any, field: string): any {
Expand Down

0 comments on commit 81389c8

Please sign in to comment.