mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Moved ToList after Where clause
This commit is contained in:
@@ -133,8 +133,8 @@ namespace Orchard.Modules.Controllers {
|
|||||||
Module = x,
|
Module = x,
|
||||||
Recipes = _recipeHarvester.HarvestRecipes(x.Descriptor.Id).Where(recipe => !recipe.IsSetupRecipe).ToList()
|
Recipes = _recipeHarvester.HarvestRecipes(x.Descriptor.Id).Where(recipe => !recipe.IsSetupRecipe).ToList()
|
||||||
})
|
})
|
||||||
.ToList()
|
.Where(x => x.Recipes.Any())
|
||||||
.Where(x => x.Recipes.Any());
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
return View(viewModel);
|
return View(viewModel);
|
||||||
|
|||||||
Reference in New Issue
Block a user