From 8812ef4c11e558749e0245b8d2fe2ed146254bb5 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Mon, 28 Jul 2025 11:44:55 -0700 Subject: [PATCH] pass data properly --- Meshtastic/Helpers/MapDataManager.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Meshtastic/Helpers/MapDataManager.swift b/Meshtastic/Helpers/MapDataManager.swift index 6a78016a..d381a902 100644 --- a/Meshtastic/Helpers/MapDataManager.swift +++ b/Meshtastic/Helpers/MapDataManager.swift @@ -131,7 +131,7 @@ class MapDataManager: ObservableObject { let uploadDate = fileAttributes.creationDate ?? Date() // Read and process file content on background queue - let (_, overlayCount) = try await withCheckedThrowingContinuation { continuation in + let (data, overlayCount) = try await withCheckedThrowingContinuation { continuation in Task.detached { do { let data = try Data(contentsOf: url) @@ -162,9 +162,6 @@ class MapDataManager: ObservableObject { let geometryType = geometry["type"] as? String else { throw NSError(domain: "MapDataManager", code: 3, userInfo: [NSLocalizedDescriptionKey: "Invalid feature structure in GeoJSON"]) } - - // Validate coordinates based on geometry type - try validateCoordinates(coordinates, for: geometryType) } // If this is the first file uploaded, make it active by default