diff --git a/projects/angular-formio/manager/src/index/index.component.html b/projects/angular-formio/manager/src/index/index.component.html index 41a9efe1..2ce8fb2f 100644 --- a/projects/angular-formio/manager/src/index/index.component.html +++ b/projects/angular-formio/manager/src/index/index.component.html @@ -1,5 +1,5 @@ 0) { + const search = this.searchElement?.nativeElement?.value; + if (search && search.length > 0) { this.gridQuery.skip = 0; this.gridQuery.title__regex = '/' + search + '/i'; this.gridQuery.title__regex = '/' + search.trim() + '/i'; @@ -70,7 +70,7 @@ export class FormManagerIndexComponent implements OnInit, AfterViewInit { } clearSearch() { - this.gridQuery = {type: this.config.type, sort: 'title'}; + this.gridQuery = {type: this.config.type || 'form', sort: 'title'}; if (this.config.tag) { this.gridQuery.tags = this.config.tag; }