From 1a1c94667c4c26404b2d7b886752e2ae3011a9fc Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Fri, 18 Apr 2025 13:21:33 +0530 Subject: [PATCH] upadated application cache key in createrole --- src/components/master/CreateRole.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/master/CreateRole.jsx b/src/components/master/CreateRole.jsx index 90f608e6..48c2fa3c 100644 --- a/src/components/master/CreateRole.jsx +++ b/src/components/master/CreateRole.jsx @@ -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() }) -- 2.43.0