Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
darnjo authored Sep 12, 2023
1 parent 7781fc7 commit 13ceeac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/find-variations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@ const computeVariations = async ({
});
} else {
//found standard resource - check field name variations
Object.keys(metadataReportMap?.[resourceName]).forEach(fieldName => {
Object.keys(metadataReportMap?.[resourceName] ?? []).forEach(fieldName => {
const isStandardField = standardMetadataMap?.[resourceName]?.[fieldName] ?? false;

if (!isStandardField) {
//field was not found in reference metadata - look for variations
Object.keys(standardMetadataMap?.[resourceName]).forEach(standardFieldName => {
Object.keys(standardMetadataMap?.[resourceName] ?? []).forEach(standardFieldName => {
const isExpansion = standardMetadataMap?.[resourceName]?.[standardFieldName]?.isExpansion ?? false;

if (!isExpansion) {
Expand Down

0 comments on commit 13ceeac

Please sign in to comment.