mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-15 18:35:55 -07:00
QOL changes to client (#165)
This commit is contained in:
parent
e7ba34710c
commit
c59c6c3baa
4 changed files with 46 additions and 30 deletions
|
|
@ -20,7 +20,7 @@ export default function DeleteModal({ open, setOpen, title, id, type }: Props) {
|
|||
setLoading(true);
|
||||
deleteItem(type.toLowerCase(), id).then((r) => {
|
||||
if (r.ok) {
|
||||
navigate("/");
|
||||
navigate(-1);
|
||||
} else {
|
||||
console.log(r);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue