Fixed an oopsie

This commit is contained in:
Robert committed 2023-03-25 22:19:36 +01:00
1 parent 319b84c949
commit c6b14813b7
3 files changed
+3 -3

No files matched your search

@@ -194,7 +194,7 @@ public abstract class DataModelVisualizationViewModel : ReactiveObject, IDisposa
}
if (looseMatch)
IsMatchingFilteredTypes = filteredTypes.Any(t => t.IsCastableFrom(type) ||
IsMatchingFilteredTypes = filteredTypes.Any(t => t!.IsCastableFrom(type) ||
(t == typeof(Enum) && type.IsEnum) ||
(t == typeof(IEnumerable<>) && type.IsGenericEnumerable()) ||
(type.IsGenericType && t == type.GetGenericTypeDefinition()));