This commit is contained in:
eeee0717
2025-06-16 15:31:07 +08:00
parent 6f38702cab
commit 51d64293d6
+1 -1
View File
@@ -199,7 +199,7 @@ export const cleanupMultipleBlocks = (dispatch: AppDispatch, blockIds: string[])
const files = blocks
.filter((block) => block.type === MessageBlockType.FILE || block.type === MessageBlockType.IMAGE)
.map((block) => block.file)
.filter((file): file is FileType => file !== undefined)
.filter((file): file is FileMetadata => file !== undefined)
return isEmpty(files) ? [] : files
}