upadated application cache key in createrole

This commit is contained in:
Pramod Mahajan 2025-04-18 13:21:33 +05:30
parent e0500d1e76
commit 1a1c94667c

View File

@ -58,17 +58,17 @@ const onSubmit = (values) => {
MasterRespository.createRole(result).then((resp)=>{
setIsLoading(false)
const cachedData = getCachedData( "Role" );
const cachedData = getCachedData( "Application Role" );
const updatedData = [...cachedData, resp.data];
cacheData("Application Role", updatedData);
showToast("Application Role Added successfully.", "success");
showToast( "Application Role Added successfully.", "success" );
onClose()
} ).catch( ( err ) =>
{
showToast(err?.response?.data?.message, "error");
setIsLoading(false)
setIsLoading( false )
onClose()
})