Skip to content

Commit

Permalink
DYN-7820 Fix regression (#15666)
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang authored Nov 18, 2024
1 parent ab2f503 commit 76cbec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private void SetFilterHosts(object obj)
Dynamo.Logging.Analytics.TrackEvent(
Actions.Filter,
Categories.PackageManagerOperations,
pmSearchViewModel.CompatibilityFilter.FirstOrDefault(x=>x.OnChecked).FilterName);
pmSearchViewModel.CompatibilityFilter.FirstOrDefault(x=>x.OnChecked)?.FilterName);
}
pmSearchViewModel.SearchAndUpdateResults();
return;
Expand Down
2 changes: 1 addition & 1 deletion src/LibraryViewExtensionWebView2/ViewExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public void Loaded(ViewLoadedParams viewLoadedParams)
viewParams = viewLoadedParams;
controller = new LibraryViewController(viewLoadedParams.DynamoWindow, viewLoadedParams.CommandExecutive, customization);
(viewLoadedParams.DynamoWindow.DataContext as DynamoViewModel).PropertyChanged += handleDynamoViewPropertyChanges;
viewParams.CurrentWorkspaceChanged += ViewParams_CurrentWorkspaceChanged;
}
viewParams.CurrentWorkspaceChanged += ViewParams_CurrentWorkspaceChanged;
}

private void ViewParams_CurrentWorkspaceChanged(IWorkspaceModel workspace)
Expand Down

0 comments on commit 76cbec1

Please sign in to comment.