Skip to content

Commit

Permalink
Fix plotly eventdata undefined val (#4355)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSkovMadsen authored and philippjfr committed Jan 30, 2023
1 parent e621a2f commit bdb7428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/models/plotly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const filterEventData = (gd: any, eventData: any, event: string) => {
for (let property in fullPoint) {
const val = fullPoint[property];
if (fullPoint.hasOwnProperty(property) &&
!Array.isArray(val) && !isPlainObject(val)) {

!Array.isArray(val) && !isPlainObject(val) &&
val !== undefined) {
pointData[property] = val;
}
}
Expand Down

0 comments on commit bdb7428

Please sign in to comment.