MOBILE-3323 search: Fix error cannot read length of undefined

main
Dani Palou 2020-02-18 11:47:30 +01:00
parent 70cdf8fc9c
commit 7d026fd413
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export class CoreSearchBoxComponent implements OnInit, OnDestroy {
searched = ''; // Last search emitted.
searchText = '';
history: CoreSearchHistoryItem[];
history: CoreSearchHistoryItem[] = [];
historyShown = false;
protected elementClicked = '';