Skip to content

Commit 7d026fd

Browse files
committed
MOBILE-3323 search: Fix error cannot read length of undefined
1 parent 70cdf8f commit 7d026fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/search/components/search-box/search-box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class CoreSearchBoxComponent implements OnInit, OnDestroy {
5454

5555
searched = ''; // Last search emitted.
5656
searchText = '';
57-
history: CoreSearchHistoryItem[];
57+
history: CoreSearchHistoryItem[] = [];
5858
historyShown = false;
5959

6060
protected elementClicked = '';

0 commit comments

Comments
 (0)