diff --git a/composeApp/src/commonMain/kotlin/com/clipevery/ui/clip/ClipPreviewsView.kt b/composeApp/src/commonMain/kotlin/com/clipevery/ui/clip/ClipPreviewsView.kt index 88a060131..076f8f66c 100644 --- a/composeApp/src/commonMain/kotlin/com/clipevery/ui/clip/ClipPreviewsView.kt +++ b/composeApp/src/commonMain/kotlin/com/clipevery/ui/clip/ClipPreviewsView.kt @@ -91,6 +91,17 @@ fun ClipPreviewsView() { } } } + + changes.deletions + changes.deletionRanges + + val iterator = rememberClipDataList.iterator() + while (iterator.hasNext()) { + val clipData = iterator.next() + if (clipDao.getClipData(clipData.id) == null) { + iterator.remove() + } + } } else -> { // types other than UpdatedResults are not changes -- ignore them