From c06bfad9169d9d5cefb8497b7387ff02020036f3 Mon Sep 17 00:00:00 2001 From: Barbara Valdez <34872381+barbaravaldez@users.noreply.github.com> Date: Thu, 8 Apr 2021 16:45:06 -0700 Subject: [PATCH] fix search loading animation (#15063) (#15066) --- .../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();