Skip to content

Commit d36035e

Browse files
Merge pull request #171 from CodeForPhilly/bugfix/zbl-builderrors
fix: Add explicit type casting for canvas reference in handlePaletteD…
2 parents d31ce7a + f30df02 commit d36035e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/GardenPlanner.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const {
112112
const handlePaletteDragStart = (event: PointerEvent, plantId: string) => {
113113
// Forward the drag start to the canvas component
114114
if (canvasRef.value && 'startPaletteDrag' in canvasRef.value) {
115+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
115116
const canvas = canvasRef.value as { startPaletteDrag: (event: PointerEvent, plantId: string) => void };
116117
canvas.startPaletteDrag(event, plantId);
117118
}

0 commit comments

Comments
 (0)