chore(web): Fixing up missing awaits (#3882)

* chore(web): Fixing up some missing awaits.

* chore(web/shared-viewer): Update import to shorted version.
This commit is contained in:
Skyler Mäntysaari
2023-08-27 07:31:52 +03:00
committed by GitHub
parent f1027d7807
commit 305889f32b
6 changed files with 15 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
import { createEventDispatcher } from 'svelte';
import { videoViewerVolume } from '$lib/stores/preferences.store';
import LoadingSpinner from '../shared-components/loading-spinner.svelte';
import { handleError } from '../../utils/handle-error';
import { handleError } from '$lib/utils/handle-error';
export let assetId: string;
@@ -19,7 +19,7 @@
video.muted = false;
dispatch('onVideoStarted');
} catch (error) {
handleError(error, 'Unable to play video');
await handleError(error, 'Unable to play video');
} finally {
isVideoLoading = false;
}