fix note revisions not displaying content length

This commit is contained in:
zadam
2021-09-30 12:23:22 +02:00
parent af3fd61974
commit 26b89fc801
3 changed files with 18 additions and 3 deletions

View File

@@ -167,12 +167,14 @@ class NoteRevision extends AbstractEntity {
dateCreated: this.dateCreated,
utcDateLastEdited: this.utcDateLastEdited,
utcDateCreated: this.utcDateCreated,
utcDateModified: this.utcDateModified
utcDateModified: this.utcDateModified,
contentLength: this.contentLength
};
}
getPojoToSave() {
const pojo = this.getPojo();
delete pojo.contentLength; // not getting persisted
if (pojo.isProtected) {
if (protectedSessionService.isProtectedSessionAvailable()) {