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 Jan 29, 2023
1 parent 1237917 commit 4847a39
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 4847a39

Please sign in to comment.