change some files
This commit is contained in:
@@ -118,7 +118,7 @@ export default function InnerIdentityForm(
|
|||||||
const handleRemoveProfilePhoto = async () => {
|
const handleRemoveProfilePhoto = async () => {
|
||||||
// اگر نیاز بود به بکاند درخواست حذف بزنید (اختیاری)
|
// اگر نیاز بود به بکاند درخواست حذف بزنید (اختیاری)
|
||||||
await callAPI.post("/files/delete", {
|
await callAPI.post("/files/delete", {
|
||||||
fileId: props.values.profilePhotoId,
|
fileId: props.values?.profilePhotoId,
|
||||||
});
|
});
|
||||||
props.setFieldValue("profilePhotoId", null);
|
props.setFieldValue("profilePhotoId", null);
|
||||||
setProfilePreview("");
|
setProfilePreview("");
|
||||||
@@ -526,7 +526,7 @@ export default function InnerIdentityForm(
|
|||||||
|
|
||||||
{/* پیام موفقیت */}
|
{/* پیام موفقیت */}
|
||||||
{!profileUploading &&
|
{!profileUploading &&
|
||||||
props.values.profilePhotoId &&
|
props?.values?.profilePhotoId &&
|
||||||
!profileUploadError && (
|
!profileUploadError && (
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Reference in New Issue
Block a user