Compare commits

...

1 Commits

Author SHA1 Message Date
YasinShaikh123
f2023cf7b3 update bugs 2024-11-11 12:48:06 +05:30
3 changed files with 12 additions and 4 deletions

View File

@@ -82,12 +82,16 @@ const KeyMeritsEdit = ({
meritsDescription: found?.meritsDescription,
meritsHeaderArabic: found?.meritsHeaderArabic,
meritsDescriptionArabic: found?.meritsDescriptionArabic,
iconImage: null,
icon_xid: found?.icon_xid,
});
console.log("==============",found);
}
}, [found, reset]);
const onSubmit = async (data) => {
console.log(data);
setIsLoading(true);
try {
const id = actionId;
@@ -97,6 +101,9 @@ const KeyMeritsEdit = ({
render: () => <ToastBox message={res?.data?.message} />,
});
handleClose()
reset({
meritsHeader: "",
});
return;
}
if (res?.error?.data?.code === 400) {
@@ -106,6 +113,7 @@ const KeyMeritsEdit = ({
),
});
handleClose()
reset();
return;
}
} catch (error) {
@@ -288,7 +296,7 @@ const KeyMeritsEdit = ({
alt={selectedImageIcon}
boxSize="1rem"
mr="12px"
/>}{" "}
/>}
<Text as={"span"} fontSize={"sm"} fontWeight={500}>
{selectedIcon}
</Text>