Skip to content

Commit

Permalink
web/uplot: Don't try to draw vertical lines if no data available
Browse files Browse the repository at this point in the history
  • Loading branch information
borg42 committed Sep 15, 2024
1 parent 6463f46 commit 5aed67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/web/src/ts/components/uplot_wrapper_2nd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export class UplotWrapper extends Component<UplotWrapperProps, {}> {
],
draw: [
(self: uPlot) => {
this.data.lines_vertical?.forEach(line => {
this.data?.lines_vertical?.forEach(line => {
const { ctx, bbox } = self;

let xd = self.data[0];
Expand Down

0 comments on commit 5aed67c

Please sign in to comment.