From 168ccb8715a67fbe09853d73bdab0481d1fd268e Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Thu, 15 Dec 2022 15:33:03 -0500 Subject: [PATCH] Updates hiddenRefs migration --- src/plus/webviews/graph/graphWebview.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index 788bb3c..62941db 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -1301,9 +1301,10 @@ export class GraphWebview extends WebviewBase { for (const id in storedHiddenRefs) { const repoPath = getRepoPathFromBranchOrTagId(id); - filtersByRepo[repoPath] = updateRecordValue( - filtersByRepo[repoPath]?.excludeRefs, - 'excludeRefs', + filtersByRepo[repoPath] = filtersByRepo[repoPath] ?? {}; + filtersByRepo[repoPath].excludeRefs = updateRecordValue( + filtersByRepo[repoPath].excludeRefs, + id, storedHiddenRefs[id], ); }