Compare commits
No commits in common. "c5bfacda3b486140b020b11464d66ba0e02d6750" and "e0500d1e7668bf9722c995246cdd6c6579bc2d03" have entirely different histories.
c5bfacda3b
...
e0500d1e76
@ -58,17 +58,17 @@ const onSubmit = (values) => {
|
|||||||
|
|
||||||
MasterRespository.createRole(result).then((resp)=>{
|
MasterRespository.createRole(result).then((resp)=>{
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
const cachedData = getCachedData( "Application Role" );
|
const cachedData = getCachedData( "Role" );
|
||||||
const updatedData = [...cachedData, resp.data];
|
const updatedData = [...cachedData, resp.data];
|
||||||
|
|
||||||
cacheData("Application Role", updatedData);
|
cacheData("Application Role", updatedData);
|
||||||
showToast( "Application Role Added successfully.", "success" );
|
showToast("Application Role Added successfully.", "success");
|
||||||
onClose()
|
onClose()
|
||||||
} ).catch( ( err ) =>
|
} ).catch( ( err ) =>
|
||||||
{
|
{
|
||||||
|
|
||||||
showToast(err?.response?.data?.message, "error");
|
showToast(err?.response?.data?.message, "error");
|
||||||
setIsLoading( false )
|
setIsLoading(false)
|
||||||
onClose()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user