fix performance issue

This commit is contained in:
Peter Maquiran
2024-07-25 12:14:45 +01:00
parent 74b82fb79d
commit d78e209252
2 changed files with 8 additions and 9 deletions
+2 -3
View File
@@ -181,15 +181,14 @@ export class PublicationFolderService {
console.log('try')
let a: any = Object.assign({}, this.publicationList[folderId][findIndex])
let b: any = Object.assign({}, publicationDetails)
let a: any = this.publicationList[folderId][findIndex]
let b: any = publicationDetails
const fileNamesB = a.Files.map((e) => e.OriginalFileName).join('')
const fileNamesL = b.Files.map((e) => e.OriginalFileName).join('')
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
}