Hide unknown nodes on mesh map

This commit is contained in:
Garth Vander Houwen 2023-02-07 07:35:07 -08:00
parent 3d2d0e8d6b
commit 7ae36758dc

View file

@ -31,7 +31,7 @@ struct NodeMap: View {
}
//&& nodePosition != nil
@FetchRequest(sortDescriptors: [NSSortDescriptor(key: "time", ascending: false)],
predicate: NSPredicate(format: "time >= %@", Calendar.current.startOfDay(for: Date()) as NSDate), animation: .none)
predicate: NSPredicate(format: "time >= %@ && nodePosition != nil", Calendar.current.startOfDay(for: Date()) as NSDate), animation: .none)
private var positions: FetchedResults<PositionEntity>
@FetchRequest(sortDescriptors: [NSSortDescriptor(key: "name", ascending: false)],