fix: Add @MainActor annotation to debounce Task in NodeList onChange handler

Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/ec4c8629-8d84-4450-9df2-2818b06f9296

Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-06 17:55:15 +00:00 committed by GitHub
parent b9accce1f9
commit a2fa3a4d13

View file

@ -130,7 +130,7 @@ struct NodeList: View {
.onChange(of: router.nodeListSelectedNodeNum) { _, newNum in
// Debounce rapid route changes only process the last selection after a short delay
nodeSelectionTask?.cancel()
nodeSelectionTask = Task {
nodeSelectionTask = Task { @MainActor in
do {
try await Task.sleep(nanoseconds: Self.nodeSelectionDebounceNs)
} catch {