diff --git a/Zotero/Scenes/Detail/PDF/ViewModels/PDFReaderActionHandler.swift b/Zotero/Scenes/Detail/PDF/ViewModels/PDFReaderActionHandler.swift index bbc427f0e..7b3ea5c3b 100644 --- a/Zotero/Scenes/Detail/PDF/ViewModels/PDFReaderActionHandler.swift +++ b/Zotero/Scenes/Detail/PDF/ViewModels/PDFReaderActionHandler.swift @@ -1833,7 +1833,7 @@ final class PDFReaderActionHandler: ViewModelActionHandler, BackgroundDbProcessi } func observe(items: Results, viewModel: ViewModel, handler: PDFReaderActionHandler) -> NotificationToken { - return items.observe { [weak handler, weak viewModel] change in + return items.observe(keyPaths: [\RItem.changeType]) { [weak handler, weak viewModel] change in guard let handler, let viewModel else { return } switch change { case .update(let objects, let deletions, let insertions, let modifications):