[WEB-5827] fix: persist external cover image URLs (Unsplash) in project updates #8482
This commit is contained in:
parent
e10deb10f2
commit
d3c6e5ec94
1 changed files with 6 additions and 2 deletions
|
|
@ -272,14 +272,18 @@ export const handleCoverImageChange = async (
|
||||||
|
|
||||||
if (uploadConfig.isUserAsset) {
|
if (uploadConfig.isUserAsset) {
|
||||||
return {
|
return {
|
||||||
cover_image_url: uploadedUrl,
|
cover_image: uploadedUrl,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
// External/uploaded asset (e.g., Unsplash URL, pre-uploaded asset)
|
||||||
|
// Return the URL to be saved in the backend
|
||||||
|
return {
|
||||||
|
cover_image: newImage,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue