diff --git a/src/annotationPanel.ts b/src/annotationPanel.ts index 61415a2..205e0fe 100644 --- a/src/annotationPanel.ts +++ b/src/annotationPanel.ts @@ -486,7 +486,9 @@ class AnnotationController { break; } case 'retryLoad': - if (msg.imagePath === this._currentImage && msg.mode === this.mode) await this.loadImage(msg.imagePath); + if (msg.imagePath && msg.mode && msg.imagePath === this._currentImage && msg.mode === this.mode) { + await this.loadImage(msg.imagePath); + } break; case 'resolveAnnotationConflicts': await this.resolveAnnotationConflicts(msg.choices || [], msg.conflictSessionId);