Skip to content

Commit 2a1a83a

Browse files
committed
Fix issue with Document form changes
1 parent 457bfe9 commit 2a1a83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/features/spaces/contents/edit-document/edit-document.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class EditDocumentComponent implements OnInit, DirtyFormGuardComponent {
163163
}
164164

165165
get isFormDirty(): boolean {
166-
return !ObjectUtils.isEqual(this.document?.data, this.contentHelperService.clone(this.documentData));
166+
return !ObjectUtils.isEqual(this.document?.data, JSON.stringify(this.contentHelperService.clone(this.documentData)));
167167
}
168168

169169
publish(): void {

0 commit comments

Comments
 (0)