Skip to content

Commit a348780

Browse files
committed
Makes attachment transfer only update file size if changed
1 parent 1f97669 commit a348780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/server/lib/ActiveDoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,7 @@ export class ActiveDoc extends EventEmitter {
26072607
const attachments = this.docData?.getMetaTable("_grist_Attachments").getRecords();
26082608
for (const attachmentRec of attachments ?? []) {
26092609
const newSize = newFileSizesByFileIdent.get(attachmentRec.fileIdent);
2610-
if (newSize) {
2610+
if (newSize && newSize !== attachmentRec.fileSize) {
26112611
rowIdsToUpdate.push(attachmentRec.id);
26122612
newFileSizesForRows.push(newSize);
26132613
}

0 commit comments

Comments
 (0)