Skip to content

Commit

Permalink
THEMES-1587: Results list handle null aspect ratio (#1960)
Browse files Browse the repository at this point in the history
THEMES-1587: added check for null values that PB editor can pass in.
  • Loading branch information
vgalatro authored Feb 21, 2024
1 parent 8595a56 commit d0f375c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const resolveDefaultPromoElements = (customFields = {}) => {
};
const fieldKeys = Object.keys(fields);
return fieldKeys.reduce((acc, key) => {
if (typeof customFields[key] === "undefined") {
if (typeof customFields[key] === "undefined" || customFields[key] === null) {
acc[key] = fields[key];
} else {
acc[key] = customFields[key];
Expand Down

0 comments on commit d0f375c

Please sign in to comment.