Skip to content

Commit

Permalink
Fix the logic that check registered VMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dicky authored and dicky committed Nov 25, 2019
1 parent e91563a commit 5082ef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DotNetifyLib.Core/VMController/VMController.Registration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ internal static List<TypeHelper> VMTypes
{
get
{
// If no view model assembly has been registered, default to the entry assembly.
if (_registeredAssemblies.Count == 0)
// If no view model has been registered, default to the entry assembly.
if (_vmTypes.Count == 0)
RegisterAssembly(Assembly.GetEntryAssembly());

// If there's deferred exception on registering assemblies, throw it now.
Expand Down

0 comments on commit 5082ef4

Please sign in to comment.