From 7d026fd413573d76e1c07dea61fe0fb979361a7c Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 18 Feb 2020 11:47:30 +0100 Subject: [PATCH] MOBILE-3323 search: Fix error cannot read length of undefined --- src/core/search/components/search-box/search-box.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/search/components/search-box/search-box.ts b/src/core/search/components/search-box/search-box.ts index 1f1ec4d91..5295790c5 100644 --- a/src/core/search/components/search-box/search-box.ts +++ b/src/core/search/components/search-box/search-box.ts @@ -54,7 +54,7 @@ export class CoreSearchBoxComponent implements OnInit, OnDestroy { searched = ''; // Last search emitted. searchText = ''; - history: CoreSearchHistoryItem[]; + history: CoreSearchHistoryItem[] = []; historyShown = false; protected elementClicked = '';