Skip to content

Commit

Permalink
FIO-8819: removed duplicate request on form manager search
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-formio committed Sep 4, 2024
1 parent 8e4b1ee commit e43e283
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions projects/angular-formio/manager/src/index/index.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class FormManagerIndexComponent implements OnInit, AfterViewInit {
localStorage.setItem('query', JSON.stringify(this.gridQuery));
localStorage.setItem('searchInput', search);
this.formGrid.pageChanged({page: 1, itemPerPage: this.gridQuery.limit});
this.formGrid.refreshGrid(this.gridQuery);
}

clearSearch() {
Expand All @@ -80,9 +79,8 @@ export class FormManagerIndexComponent implements OnInit, AfterViewInit {
if (this.searchElement?.nativeElement) {
this.searchElement.nativeElement.value = '';
}
this.formGrid.query = this.gridQuery;
this.formGrid.pageChanged({page: 1});
this.formGrid.query = {};
this.formGrid.refreshGrid(this.gridQuery);
}

onAction(action: any) {
Expand Down

0 comments on commit e43e283

Please sign in to comment.