W n8n attention
This commit is contained in:
parent
a15a87f70e
commit
a6407fc0c9
@ -24,6 +24,7 @@ interface Mission {
|
|||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
logo?: string;
|
logo?: string;
|
||||||
|
logoUrl?: string;
|
||||||
oddScope: string[];
|
oddScope: string[];
|
||||||
niveau: string;
|
niveau: string;
|
||||||
missionType: string;
|
missionType: string;
|
||||||
@ -222,14 +223,14 @@ export default function MissionsPage() {
|
|||||||
{/* Centered Logo */}
|
{/* Centered Logo */}
|
||||||
<div className="flex justify-center items-center p-6 flex-grow">
|
<div className="flex justify-center items-center p-6 flex-grow">
|
||||||
<div className="w-48 h-48 relative">
|
<div className="w-48 h-48 relative">
|
||||||
{mission.logo ? (
|
{mission.logoUrl ? (
|
||||||
<img
|
<img
|
||||||
src={mission.logo || ''}
|
src={mission.logoUrl}
|
||||||
alt={mission.name}
|
alt={mission.name}
|
||||||
className="w-full h-full object-cover rounded-md"
|
className="w-full h-full object-cover rounded-md"
|
||||||
onError={(e) => {
|
onError={(e) => {
|
||||||
console.log("Logo failed to load:", mission.logo);
|
console.log("Logo failed to load:", mission.logoUrl);
|
||||||
console.log("Full URL attempted:", mission.logo);
|
console.log("Full URL attempted:", mission.logoUrl);
|
||||||
// If the image fails to load, show the fallback
|
// If the image fails to load, show the fallback
|
||||||
(e.currentTarget as HTMLImageElement).style.display = 'none';
|
(e.currentTarget as HTMLImageElement).style.display = 'none';
|
||||||
// Show the fallback div
|
// Show the fallback div
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user