Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 22, 2025
1 parent 3dab3c9 commit 7ed3e65
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions panel/models/plotly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const filterEventData = (gd: any, eventData: any, event: string) => {
return null
}

const event_obj = eventData["event"];
const event_obj = eventData.event
if (event_obj !== undefined) {
var inputDeviceState = {
filteredEventData.inputDeviceState = {
// Keyboard modifiers
alt: event_obj.altKey,
ctrl: event_obj.ctrlKey,
Expand All @@ -67,8 +67,7 @@ const filterEventData = (gd: any, eventData: any, event: string) => {
// Mouse buttons
button: event_obj.button,
buttons: event_obj.buttons,
};
filteredEventData.device_state = inputDeviceState
}
}

let selectorObject
Expand Down

0 comments on commit 7ed3e65

Please sign in to comment.