From bf9c87c0ad95194b95d4ffbd6795b15cf9095c5e Mon Sep 17 00:00:00 2001 From: Jeremiasz Major Date: Mon, 16 Dec 2024 18:07:54 +0100 Subject: [PATCH] fix ssr issue --- resources/js/Components/Cropper/Cropper.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/js/Components/Cropper/Cropper.svelte b/resources/js/Components/Cropper/Cropper.svelte index 35bd925..976539f 100644 --- a/resources/js/Components/Cropper/Cropper.svelte +++ b/resources/js/Components/Cropper/Cropper.svelte @@ -35,6 +35,7 @@ ]; function scaled(value: number) { + if (!el) return value; return el.clientWidth / el.naturalWidth * value; }