mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix performance issue
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user