Fix small image
This commit is contained in:
@@ -39,7 +39,7 @@ export default function SlugTeks({hasError, errorMessage, paroles, parole, slug,
|
||||
}
|
||||
|
||||
if (couverture.data.attributes && couverture.data.attributes.formats && couverture.data.attributes.formats.small) {
|
||||
return couverture.formats.small
|
||||
return couverture.data.attributes.formats.small
|
||||
}
|
||||
|
||||
return couverture.data.attributes
|
||||
|
||||
Reference in New Issue
Block a user