Skip to content

Commit de29654

Browse files
committed
avoiding ?. to support node 12 natively
1 parent e0d1f03 commit de29654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/cloudinary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async function updateHtmlImagesToCloudinary(html, options = {}) {
191191
// Check to see if we have an existing asset already to pick from
192192
// Look at both the path and full URL
193193

194-
const asset = Array.isArray(assets?.images) && assets.images.find(({ publishPath, publishUrl } = {}) => {
194+
const asset = assets && Array.isArray(assets.images) && assets.images.find(({ publishPath, publishUrl } = {}) => {
195195
return [publishPath, publishUrl].includes(imgSrc);
196196
});
197197

0 commit comments

Comments
 (0)