diff --git a/GanjooRazor/Pages/Index.cshtml.cs b/GanjooRazor/Pages/Index.cshtml.cs index 567ef105..ae1c3f99 100644 --- a/GanjooRazor/Pages/Index.cshtml.cs +++ b/GanjooRazor/Pages/Index.cshtml.cs @@ -1154,7 +1154,11 @@ namespace GanjooRazor.Pages return new BadRequestObjectResult("مورد دیگری یافت نشد."); } - quoteds.RemoveAt(0); + if(quoteds.Any(q => q.ChosenForMainList)) + { + var mainList = quoteds.Where(q => q.ChosenForMainList).First(); + quoteds.Remove(mainList); + } return new PartialViewResult()