From 449f12bf3c97727f2208890288f3a784e5378c6c Mon Sep 17 00:00:00 2001 From: Olli Vanhoja Date: Sun, 29 Oct 2023 11:23:21 +0100 Subject: [PATCH] Fix ts-ignore --- components/map/Edit.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/map/Edit.tsx b/components/map/Edit.tsx index afe70cb..0e60aad 100644 --- a/components/map/Edit.tsx +++ b/components/map/Edit.tsx @@ -72,11 +72,11 @@ export default function MapEditCourse({ if (layer._latlngs) { // Polyline // TODO Detect which segment was changed - // @ts-ignore setCourse( updateTrackSegment( JSON.parse(initStr), 0, + // @ts-ignore layer._latlngs.map((v) => ({ lat: v.lat, lon: v.lng })) ) );