diff --git a/app/javascript/src/preview.ts b/app/javascript/src/preview.ts index 713570c3a..7c758c612 100644 --- a/app/javascript/src/preview.ts +++ b/app/javascript/src/preview.ts @@ -15,7 +15,7 @@ class ObjectPreview { this.progressLabel = this.canvas.parentElement?.getElementsByClassName('progress-label')[0] as HTMLSpanElement } - async run (): void { + async run (): Promise { // Create offscreen renderer worker const offscreenCanvas = this.canvas.transferControlToOffscreen() const OffscreenRenderer = await Comlink.wrap(