fix: implement Hash for Category manually

This commit is contained in:
Matouš Volf
2024-09-05 20:42:55 +02:00
parent f205af7563
commit 2b39283bf5
2 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,7 @@ pub(crate) fn use_tasks_in_category_query(category: Category)
async fn fetch_tasks_in_category(keys: Vec<QueryKey>) -> QueryResult<QueryValue, QueryErrors> {
if let Some(QueryKey::TasksInCategory(category)) = keys.first() {
match get_tasks_in_category(category.clone()).await {
match get_tasks_in_category(category.clone()).await {
Ok(tasks) => Ok(QueryValue::Tasks(tasks)),
Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)),
Err(error) => panic!("Unexpected error: {:?}", error)