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