Fix attachment key in AttachmentList

This commit is contained in:
Fedor Indutny
2025-08-13 07:23:44 -07:00
committed by GitHub
parent 78c1559f76
commit 4493f3f439

View File

@@ -99,7 +99,12 @@ export function AttachmentList<
const url = getUrl(attachment);
const forUI = attachmentsForUI[index];
const key = url || attachment.path || attachment.fileName || index;
const key =
attachment.clientUuid ||
url ||
attachment.path ||
attachment.fileName ||
index;
const isImage = isImageAttachment(attachment);
const isVideo = isVideoAttachment(attachment);