Skip to content

Commit f4b8d9d

Browse files
tumms2021389samhere06
authored andcommitted
fix: streamline attachment change detection logic in AttachmentComponent
1 parent e8b13cf commit f4b8d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular-sdk-components/src/lib/_components/widget/attachment/attachment.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class AttachmentComponent implements OnInit, OnDestroy {
159159
const rawValue = this.pConn$.getComponentConfig().value;
160160
const isAttachmentAnnotationPresent = typeof rawValue === 'object' ? false : rawValue?.includes('@ATTACHMENT');
161161
const { attachments, isOldAttachment } = isAttachmentAnnotationPresent ? value : PCore.getAttachmentUtils().prepareAttachmentData(value);
162-
const isAttachmentsChanged = !PCore.isDeepEqual(this.attachments, attachments); // JSON.stringify(this.attachments) !== JSON.stringify(attachments);
162+
const isAttachmentsChanged = !PCore.isDeepEqual(this.attachments, attachments);
163163
this.isOldAttachment = isOldAttachment;
164164
this.attachments = attachments;
165165

0 commit comments

Comments
 (0)