From 2152d870e6a9bc8c36e023bfb9da48d008180fb2 Mon Sep 17 00:00:00 2001 From: Ramin Tadayon Date: Mon, 19 Dec 2022 15:47:00 -0700 Subject: [PATCH] Changes defaults on filter objects when getting graph state --- src/plus/webviews/graph/graphWebview.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index 5b09035..c80c3e0 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -1610,9 +1610,9 @@ export class GraphWebview extends WebviewBase { context: { header: this.getColumnHeaderContext(columns), }, - excludeRefs: data != null ? this.getExcludedRefs(data) : undefined, - excludeTypes: this.getExcludedTypes(data), - includeOnlyRefs: data != null ? this.getIncludeOnlyRefs(data) : undefined, + excludeRefs: data != null ? this.getExcludedRefs(data) ?? {} : {}, + excludeTypes: this.getExcludedTypes(data) ?? {}, + includeOnlyRefs: data != null ? this.getIncludeOnlyRefs(data) ?? {} : {}, nonce: this.cspNonce, workingTreeStats: getSettledValue(workingStatsResult) ?? { added: 0, deleted: 0, modified: 0 }, debugging: this.container.debugging,