mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-05 23:44:26 +01:00
update: use fluentApi to fetch images in resolvers
This commit is contained in:
@@ -20,7 +20,7 @@ const PROVIDERS = [
|
||||
* @returns {string} image url
|
||||
*/
|
||||
function resolveImgObjectToUrl(imgObject, variant = null) {
|
||||
if (!imgObject) throw new Error('Image not found')
|
||||
if (!imgObject) return null;
|
||||
|
||||
if (imgObject.provider === 'external') {
|
||||
return imgObject.url
|
||||
|
||||
Reference in New Issue
Block a user