mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	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.
This commit is contained in:
		| @@ -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); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user