Skip to content

Commit

Permalink
sets a default for plottingScale of 1 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgarciae authored Oct 26, 2021
1 parent fafb112 commit 5d99db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class LuxWidgetView extends DOMWidgetView {
currentVisSelected: -2,
openWarning: false,
openInfo: false,
plottingScale: props.model.get("plotting_scale")
plottingScale: props.model.get("plotting_scale") || 1
}

// This binding is necessary to make `this` work in the callback
Expand Down

0 comments on commit 5d99db5

Please sign in to comment.