fix: implement Hash for Category manually

This commit is contained in:
2024-09-05 20:42:55 +02:00
parent 8e895b4f89
commit 0fe8ee503d
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)