From f712c14b935baa5476089c159dfcd3502652111d Mon Sep 17 00:00:00 2001 From: Barbara Valdez <34872381+barbaravaldez@users.noreply.github.com> Date: Thu, 8 Apr 2021 15:29:40 -0700 Subject: [PATCH] fix search loading animation (#15063) --- .../contrib/notebook/browser/notebookExplorer/notebookSearch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/contrib/notebook/browser/notebookExplorer/notebookSearch.ts b/src/sql/workbench/contrib/notebook/browser/notebookExplorer/notebookSearch.ts index 1e871a7863..ba9884548e 100644 --- a/src/sql/workbench/contrib/notebook/browser/notebookExplorer/notebookSearch.ts +++ b/src/sql/workbench/contrib/notebook/browser/notebookExplorer/notebookSearch.ts @@ -259,7 +259,7 @@ export class NotebookSearchView extends SearchView { const onComplete = async (completed?: ISearchComplete) => { let end = new Date().getTime(); this._telemetryService.createActionEvent(TelemetryKeys.TelemetryView.Notebook, TelemetryKeys.TelemetryAction.SearchCompleted) - .withAdditionalProperties({ resultsReturned: completed.results.length }) + .withAdditionalProperties({ resultsReturned: completed?.results.length }) .withAdditionalMeasurements({ timeTakenMs: end - start }) .send();