Skip to content

Commit

Permalink
Fix typeError exception in time-graph-viewport-layer.ts
Browse files Browse the repository at this point in the history
Fixes #214

Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
  • Loading branch information
bhufmann committed Nov 11, 2022
1 parent 16e8148 commit dbc96fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions timeline-chart/src/layer/time-graph-viewport-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export abstract class TimeGraphViewportLayer extends TimeGraphLayer {
}

protected shiftStage = () => {
if (this.layer.position === undefined || this.layer.position === null) {
return;
}
this.layer.position.x = this.stateController.positionOffset.x;
}

Expand Down

0 comments on commit dbc96fd

Please sign in to comment.