Improve edit event from inicio

This commit is contained in:
Peter Maquiran
2021-04-08 22:53:31 +01:00
parent 51cf7b7598
commit efdc79c0f7
2 changed files with 14 additions and 9 deletions
+8 -4
View File
@@ -210,12 +210,14 @@ export class SearchPage implements OnInit {
res.Categories.forEach( e => {
e['Active'] = false;
this.searchCategories.push(e)
});
// bind respose
this.searchCategories = res.Categories;
this.searchDocuments = this.sortArrayISODate(res.Documents);
this.sortArrayISODate(res.Documents).forEach(e => {
this.searchDocuments.push(e)
});
this.reorderList(this.ordinance);
@@ -235,12 +237,14 @@ export class SearchPage implements OnInit {
res.Categories.forEach( e => {
e['Active'] = false;
this.searchCategories.push(e)
});
// bind respose
this.searchCategories = res.Categories;
this.searchDocuments = this.sortArrayISODate(res.Documents);
this.sortArrayISODate(res.Documents).forEach(e => {
this.searchDocuments.push(e)
});
this.reorderList(this.ordinance);