Skip to content

Commit 3820716

Browse files
committed
feat: on empty string search display home screen
CU-86c37j4dk
1 parent dd4e2e7 commit 3820716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/app/features/template-gallery/template-gallery.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class TemplateGalleryComponent implements OnInit, OnDestroy {
5151
private subscribeToSearchTerm(): void {
5252
this.searchSubscription = this.route.queryParams.subscribe(params => {
5353
const searchTerm = params['searchTerm'];
54-
this.isSearch = searchTerm !== undefined;
54+
this.isSearch = !!searchTerm;
5555

5656
this.templates$ = this.getTemplatesWithLogos(
5757
searchTerm

0 commit comments

Comments
 (0)