mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Fixes duplicate category bypass exception
This commit is contained in:
1 parent
bab566a2b9
commit
ccbb57f88b
1 file changed
+1
-1
@@ -50,7 +50,7 @@ namespace Artemis.UI.Screens.Sidebar.Dialogs
|
||||
|
||||
private bool BeUniqueCategory(SidebarCategoryCreateViewModel viewModel, string categoryName)
|
||||
{
|
||||
return _profileCategoryRepository.IsUnique(categoryName, null) == null;
|
||||
return _profileCategoryRepository.IsUnique(categoryName.Trim(), null) == null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user