fix: return orignal if size not available
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
Benno Tielen 2026-03-20 01:28:34 +01:00
parent f3dc368500
commit 3148231cc8

View file

@ -71,6 +71,14 @@ export const getPhoto = (size: Size, data: OptionalMedia): StaticImageData | und
}
}
// return original
if (data.url && data.width && data.height)
return {
src: data.url,
width: data.width,
height: data.height
};
return undefined;
}