[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

View File

@@ -272,14 +272,18 @@ export const handleCoverImageChange = async (
if (uploadConfig.isUserAsset) {
return {
cover_image_url: uploadedUrl,
cover_image: uploadedUrl,
};
} else {
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,
};
};
/**