Skip to content

Commit

Permalink
fix(core): Translatable fields default to empty string if falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Apr 6, 2023
1 parent 1ffd417 commit e119154
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function translateEntity<T extends Translatable & VendureEntity>(
}
Object.assign(translated.customFields, value);
} else if (key !== 'base' && key !== 'id' && key !== 'createdAt' && key !== 'updatedAt') {
translated[key] = value;
translated[key] = value ?? '';
}
}
return translated;
Expand Down

0 comments on commit e119154

Please sign in to comment.