Skip to content

Commit

Permalink
fix loading type
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Mar 17, 2024
1 parent f6edde1 commit 5647e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hook/create-model-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const createModelResource = <
throw new Error('Missing deleteClient');
}

setIsLoading('update');
setIsLoading('delete');

const response = await deleteClient(id);

Expand All @@ -150,7 +150,7 @@ export const createModelResource = <
success = false;
} else {
setHttpError(undefined);
setModel(response);
setModel(undefined);
success = true;
}

Expand Down

0 comments on commit 5647e34

Please sign in to comment.