mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 14:51:13 -05:00
Fix PhotoSubmissionUpload component URL
This commit is contained in:
@@ -97,14 +97,14 @@ export function PhotoSubmissionUpload({ onSubmissionComplete, parkId, rideId }:
|
|||||||
|
|
||||||
const statusData = await response.json();
|
const statusData = await response.json();
|
||||||
|
|
||||||
if (!statusData?.urls?.original) {
|
if (!statusData?.urls?.public) {
|
||||||
console.error('No image URL returned:', statusData);
|
console.error('No image URL returned:', statusData);
|
||||||
throw new Error('No image URL available');
|
throw new Error('No image URL available');
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: imageId,
|
id: imageId,
|
||||||
url: statusData.urls.original,
|
url: statusData.urls.public,
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Upload error:', error);
|
console.error('Upload error:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user