Skip to content

Commit 844fdb6

Browse files
committed
fix: check for undefined
1 parent 39f5a23 commit 844fdb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/media/imaging/components/imaging-thumbnail.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
101101
this.mode,
102102
);
103103

104-
this._thumbnailUrl = data?.[0].url ?? '';
104+
this._thumbnailUrl = data?.[0]?.url ?? '';
105105
this._isLoading = false;
106106
}
107107

0 commit comments

Comments
 (0)