show msg once restored document
This commit is contained in:
parent
d5b3c25b45
commit
13a517f998
@ -19,6 +19,7 @@ import { isPending } from "@reduxjs/toolkit";
|
||||
import { useHasUserPermission } from "../../hooks/useHasUserPermission";
|
||||
import { useProfile } from "../../hooks/useProfile";
|
||||
import { useParams } from "react-router-dom";
|
||||
import showToast from "../../services/toastService";
|
||||
|
||||
const DocumentsList = ({
|
||||
Document_Entity,
|
||||
@ -105,6 +106,7 @@ const DocumentsList = ({
|
||||
{
|
||||
onSettled: () => {
|
||||
setRestoringIds((prev) => prev.filter((id) => id !== docId));
|
||||
showToast("Document restored successfully","success")
|
||||
refetch();
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user