diff --git a/Signum.React/Facades/SignumControllerFactory.cs b/Signum.React/Facades/SignumControllerFactory.cs index ae273589ed..f7c3190980 100644 --- a/Signum.React/Facades/SignumControllerFactory.cs +++ b/Signum.React/Facades/SignumControllerFactory.cs @@ -38,7 +38,7 @@ public void PopulateFeature(IEnumerable parts, ControllerFeatur (AllowedAreas.TryGetC(ti.Assembly)?.Any(ns => ti.Namespace!.StartsWith(ns)) ?? false) || AllowedControllers.Contains(ti.AsType())); - var toRemove = feature.Controllers.Where(ti => !allowed.Contains(ti)); + var toRemove = feature.Controllers.Where(ti => !allowed.Contains(ti)).ToList(); feature.Controllers.RemoveAll(ti => toRemove.Contains(ti)); }