Skip to content

Commit 0459403

Browse files
committed
chore: avoid having firstUpdated async
1 parent 8e18152 commit 0459403

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
6565

6666
#imagingRepository = new UmbImagingRepository(this);
6767

68-
protected override async firstUpdated() {
69-
await this.#generateThumbnailUrl();
70-
this._isLoading = false;
68+
protected override firstUpdated() {
69+
this.#generateThumbnailUrl();
7170
}
7271

7372
override render() {
@@ -101,7 +100,9 @@ export class UmbImagingThumbnailElement extends UmbLitElement {
101100
this.width,
102101
this.mode,
103102
);
104-
this._thumbnailUrl = data[0]?.url ?? '';
103+
104+
this._thumbnailUrl = data[0].url ?? '';
105+
this._isLoading = false;
105106
}
106107

107108
static override styles = [

0 commit comments

Comments
 (0)