mirror of
https://github.com/makeplane/plane.git
synced 2026-02-24 04:00:14 +01:00
[WEB-5827] fix: persist external cover image URLs (Unsplash) in project updates #8482
This commit is contained in:
committed by
GitHub
parent
e10deb10f2
commit
d3c6e5ec94
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user