Browse Source

Небольшие исправления

Fox 4 months ago
parent
commit
2453b21127
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Pages/UserTests.xaml.cs

+ 1 - 1
Pages/UserTests.xaml.cs

@@ -67,7 +67,7 @@ namespace PsychoTest.Pages
             List<Tests> FilterList = DB.Tests.ToList();
             if(CategoryFilter.SelectedIndex!= 0)
             {
-                FilterList = FilterList.Where(x=>x.Id_category+1 == CategoryFilter.SelectedIndex).ToList();
+                FilterList = FilterList.Where(x=>x.Id_category == CategoryFilter.SelectedIndex+1).ToList();
             }
             if (!string.IsNullOrEmpty(SearchBar.Text))
             {