Merge pull request 'Fix Seeder Image, Menu Landing Page - Desa' (#56) from nico/30-jan-26 into staggingweb
Reviewed-on: http://wibugit.wibudev.com/wibu/desa-darmasaba/pulls/56
This commit is contained in:
@@ -552,7 +552,7 @@ const maskotDesa = proxy({
|
||||
deskripsi: profileData.deskripsi || "",
|
||||
images: (profileData.images || []).map((img) => ({
|
||||
label: img.label,
|
||||
imageId: img.image.id,
|
||||
imageId: img?.image?.id || "",
|
||||
})),
|
||||
};
|
||||
},
|
||||
|
||||
@@ -462,7 +462,7 @@ function Page() {
|
||||
<Card withBorder key={idx} p="xs" w={{ base: '100%', md: 180 }}>
|
||||
<Center>
|
||||
<Image
|
||||
src={img.image.link}
|
||||
src={ img?.image?.link || '/no-image.jpg'}
|
||||
alt={img.label}
|
||||
w={150}
|
||||
h={150}
|
||||
@@ -562,7 +562,7 @@ function Page() {
|
||||
<Card withBorder key={idx} p="xs" w={{ base: '100%', md: 180 }}>
|
||||
<Center>
|
||||
<Image
|
||||
src={img.image.link}
|
||||
src={img?.image?.link || '/no-image.jpg'}
|
||||
alt={img.label}
|
||||
w={150}
|
||||
h={150}
|
||||
|
||||
Reference in New Issue
Block a user