[WEB-5827] fix: persist external cover image URLs (Unsplash) in project updates #8482

This commit is contained in:
Anmol Singh Bhatia 2026-02-17 00:21:43 +05:30 committed by GitHub
parent e10deb10f2
commit d3c6e5ec94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
};
}; };
/** /**