fix agenda and publication

This commit is contained in:
Peter Maquiran
2024-05-24 11:29:53 +01:00
parent fcb6727f4e
commit 3eecefcfa6
38 changed files with 651 additions and 216 deletions
+3 -5
View File
@@ -184,15 +184,13 @@ export class PublicationFolderService {
let a: any = Object.assign({}, this.publicationList[folderId][findIndex])
let b: any = Object.assign({}, publicationDetails)
a.Files = a.Files.length
b.Files = b.Files.length
const fileNamesB = a.Files.map((e) => e.OriginalFileName).join('')
const fileNamesL = b.Files.map((e) => e.OriginalFileName).join('')
if (JSON.stringify(a) != JSON.stringify(b)) {
if (a.Message != b.Message || a.Title != b.Title || a.Files.length != b.Files.length || fileNamesB != fileNamesL) {
console.log({a, b})
this.publicationList[folderId][findIndex] = publicationDetails
} else {
// console.log({publicationDetails})
}
}