From 5447ad29614be43d4d701d82af46cd8e98fb7b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 6 Nov 2024 19:31:01 +0100 Subject: [PATCH] Fix casting zoom level from string to floatInt Changed the type of the zoomLevel parameter from number to string and updated the assignment to parse the zoomLevel as a float. This ensures that the zoom functionality properly handles string inputs by converting them to numerical values. --- .../Resources/public/vuejs/DocumentSignature/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue index 7b62f3fa7..52c33b0f8 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue +++ b/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/App.vue @@ -331,8 +331,8 @@ const $toast = useToast(); const signature = window.signature; -const setZoomLevel = (zoomLevel: number) => { - zoom.value = zoomLevel; +const setZoomLevel = (zoomLevel: string) => { + zoom.value = Number.parseFloat(zoomLevel); setPage(page.value); setTimeout(() => drawAllZones(page.value), 200); };