From 383b72fb983ed090d448fb0192f8145045bdd7bb Mon Sep 17 00:00:00 2001 From: Mark Sujew Date: Fri, 12 Aug 2022 00:39:06 +0200 Subject: [PATCH] Fix minor possible `undefined` issue --- packages/scm-extra/src/browser/scm-navigable-list-widget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scm-extra/src/browser/scm-navigable-list-widget.tsx b/packages/scm-extra/src/browser/scm-navigable-list-widget.tsx index 889bb3ab90efb..25b67aa7919dd 100644 --- a/packages/scm-extra/src/browser/scm-navigable-list-widget.tsx +++ b/packages/scm-extra/src/browser/scm-navigable-list-widget.tsx @@ -29,7 +29,7 @@ import { ScmFileChangeNode } from './scm-file-change-node'; @injectable() export abstract class ScmNavigableListWidget extends ReactWidget { - protected scmNodes: T[]; + protected scmNodes: T[] = []; private _scrollContainer: string; @inject(ScmService) protected readonly scmService: ScmService;