fix: check for undefined

This commit is contained in:
Jacob Overgaard
2024-07-10 11:19:39 +02:00
parent f76035830b
commit abf96a40d4

View File

@@ -101,7 +101,7 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
this.mode,
);
this._thumbnailUrl = data[0].url ?? '';
this._thumbnailUrl = data?.[0].url ?? '';
this._isLoading = false;
}