Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #8694: Fix potential tab loss when window not found #8695

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Data/models/SessionWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)) == %@", windowId as NSUUID)
return first(where: predicate, context: context)
}

Expand Down
Loading