removed console

This commit is contained in:
Pramod Mahajan 2025-04-14 20:14:25 +05:30
parent 2d57ab23da
commit 23223661f0
2 changed files with 1 additions and 5 deletions

View File

@ -57,12 +57,9 @@ const onSubmit = (values) => {
};
MasterRespository.createRole(result).then((resp)=>{
console.log(resp)
setIsLoading(false)
const cachedData = getCachedData( "Role" );
console.log(cachedData)
const updatedData = [...cachedData, resp];
const updatedData = [...cachedData, resp.data];
cacheData("Role", updatedData);
showToast("Role Added successfully.", "success");

View File

@ -10,7 +10,6 @@ const DeleteMaster = ({ master, onClose }) => {
const index = mastersdata[master?.masterType]?.findIndex(
(item) => String(item?.id) === String(master?.item?.id)
);
console.log(index);
if (index !== -1) {
mastersdata[master?.masterType].splice(index, 1);
}