Add api prefix to attachment nodes

This commit is contained in:
Philipinho
2025-03-06 14:19:29 +00:00
parent a7dd9b9198
commit 16254802e3
6 changed files with 15 additions and 6 deletions

View File

@ -77,7 +77,7 @@ export default function DrawioView(props: NodeViewProps) {
}
updateAttributes({
src: `/files/${attachment.id}/${attachment.fileName}?t=${new Date(attachment.updatedAt).getTime()}`,
src: `/api/files/${attachment.id}/${attachment.fileName}?t=${new Date(attachment.updatedAt).getTime()}`,
title: attachment.fileName,
size: attachment.fileSize,
attachmentId: attachment.id,