Unset navigation selected node on details disappear

This commit is contained in:
Garth Vander Houwen 2025-07-15 08:11:48 -07:00
parent 870fe5a13c
commit 5cca683d44

View file

@ -284,6 +284,9 @@ struct NodeList: View {
// Make sure the ZStack passes through accessibility to the ConnectedDevice component
.accessibilityElement(children: .contain)
)
.onDisappear {
router.navigationState.nodeListSelectedNodeNum = nil
}
}
} else {
ContentUnavailableView("Select Node", systemImage: "flipphone")