Skip to content

Commit

Permalink
[FE][Feat] : null로 인한 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
juwon5272 authored Dec 2, 2024
1 parent 2d57d9d commit 359244c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/useRedraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const useRedrawCanvas = ({
// }
// };
const drawPath = (ctx: CanvasRenderingContext2D, points: ILatLng[]) => {
if (points.length === 0 || !footprintRef.current) return;
if (points.length === 0 || !footprintRef.current || !map) return;

const footprintImage = footprintRef.current;
const markerSize = Math.min(map.getZoom() * 2, 20);
Expand Down

0 comments on commit 359244c

Please sign in to comment.