We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf34672 commit f8a5fd5Copy full SHA for f8a5fd5
src/components/GardenPlanner.vue
@@ -112,7 +112,8 @@ const {
112
const handlePaletteDragStart = (event: PointerEvent, plantId: string) => {
113
// Forward the drag start to the canvas component
114
if (canvasRef.value && 'startPaletteDrag' in canvasRef.value) {
115
- (canvasRef.value as { startPaletteDrag: (event: PointerEvent, plantId: string) => void }).startPaletteDrag(event, plantId);
+ const canvas = canvasRef.value as { startPaletteDrag: (event: PointerEvent, plantId: string) => void };
116
+ canvas.startPaletteDrag(event, plantId);
117
}
118
};
119
</script>
0 commit comments