Skip to content

Commit d1c6e2b

Browse files
committed
Fix grouping key in ViewModel registrations
Changed the grouping key from SplatRegistrationType to SplatViewModelRegistrationType in viewModelRegistrations to ensure correct grouping of ViewModel registration types.
1 parent 88af253 commit d1c6e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReactiveUI.SourceGenerators.Roslyn/IViewFor/IViewForGenerator.Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ private static string GenerateRegistrationExtensions(in ImmutableArray<IViewForI
337337

338338
var viewModelRegistrations = iviewForInfo
339339
.Where(static x => !string.IsNullOrWhiteSpace(x.SplatViewModelRegistrationType))
340-
.GroupBy(static x => (x.TargetInfo.TargetNamespaceWithNamespace, x.ViewModelTypeName, x.SplatRegistrationType))
340+
.GroupBy(static x => (x.TargetInfo.TargetNamespaceWithNamespace, x.ViewModelTypeName, x.SplatViewModelRegistrationType))
341341
.Select(static g => g.First())
342342
.ToImmutableArray();
343343

0 commit comments

Comments
 (0)