Skip to content

Commit

Permalink
Reduce canvas appplet error cases where the frame image isn't loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
marktaipan-cvisionai committed Jul 17, 2024
1 parent 65b6f0f commit 5181ad8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/js/annotation/canvas-applet-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ export class CanvasAppletElement extends TatorElement {
redrawCanvas() {
if (this._canvasCenterPoint == null) {
return; // Not initialized yet.
} else if (this._frameImage.width == 0) {
return; // No frame image loaded
}

//
Expand Down

0 comments on commit 5181ad8

Please sign in to comment.