mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
bug fix
This commit is contained in:
@@ -675,8 +675,10 @@ export class EditEventPage implements OnInit {
|
||||
}
|
||||
|
||||
deleteAttachment(attachmentID: string, index) {
|
||||
|
||||
const id: any = this.loadedEventAttachments[index].Id
|
||||
console.log(this.loadedEventAttachments)
|
||||
const id: any = this.loadedEventAttachments[index].docId
|
||||
let update = this.removeItemById(this.loadedEventAttachments, id)
|
||||
this.loadedEventAttachments = update
|
||||
this.deletedAttachmentsList.push(id)
|
||||
|
||||
/* if (id == 'add') {
|
||||
@@ -688,6 +690,10 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
removeItemById(array, id) {
|
||||
return array.filter(item => item.docId !== id);
|
||||
}
|
||||
|
||||
async getDoc() {
|
||||
const modal = await this.modalController.create({
|
||||
component: SearchPage,
|
||||
|
||||
Reference in New Issue
Block a user