From 7d7d92d814a2021924a1fb503c6bd5b6860befe1 Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 24 Jan 2024 14:06:37 -0500 Subject: [PATCH] Pass WindowID as a UUID directly to NSPredicate --- Sources/Data/models/SessionWindow.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Data/models/SessionWindow.swift b/Sources/Data/models/SessionWindow.swift index f9fe3045ab3..059eb5eed40 100644 --- a/Sources/Data/models/SessionWindow.swift +++ b/Sources/Data/models/SessionWindow.swift @@ -65,7 +65,7 @@ extension SessionWindow { } public static func from(windowId: UUID, in context: NSManagedObjectContext) -> SessionWindow? { - let predicate = NSPredicate(format: "\(#keyPath(SessionWindow.windowId)) == %@", windowId.uuidString) + let predicate = NSPredicate(format: "\(#keyPath(SessionWindow.windowId)) == %@", argumentArray: [windowId]) return first(where: predicate, context: context) }