From e2a62b68f3a2fc4414ff27a7908f4ee7e93b6142 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 13 Jul 2026 19:04:11 +0530 Subject: refactor: some more refactoring and removing unused or depticated code --- src/scripts/functionality/sheet-map/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/scripts/functionality/sheet-map/index.ts') diff --git a/src/scripts/functionality/sheet-map/index.ts b/src/scripts/functionality/sheet-map/index.ts index 3d566c2..a4d7544 100644 --- a/src/scripts/functionality/sheet-map/index.ts +++ b/src/scripts/functionality/sheet-map/index.ts @@ -69,7 +69,7 @@ const downloadPDF = (labelPoints: boolean = true) => { .innerHTML .split("[")[1] .trim(); - return detail.substr(0, detail.length - 1); + return detail.substring(0, detail.length - 1); }; generateWebPage( getDownloadMapPDFPageContent({ @@ -143,9 +143,8 @@ setPlotInformation(); setPlotInformation(plotPolygon); }); - await new Promise((resolve, reject) => { + await new Promise((resolve, _reject) => { const plotElementIdsControl = setInterval(() => { - let i = 0; let plotElements = document.querySelector("#OpenLayers_Layer_Vector_25_vroot")?.children || []; if (plotElements.length) { clearInterval(plotElementIdsControl); -- cgit v1.2.3