Skip to content

Commit

Permalink
More linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Oct 13, 2023
1 parent 77c4c01 commit 7a54b24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ describe('EPM template', () => {
const fields: Field[] = safeLoad(textWithRuntimeFieldsLiteralYml);
expect(() => {
const processedFields = processFields(fields);
const mappings = generateMappings(processedFields);
generateMappings(processedFields);
}).toThrow();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ function _generateMappings(
matchingType = field.object_type_mapping_type ?? field.object_type;
break;
case 'group':
if (!field?.fields) {
break;
}
const subFields = field.fields.map((subField) => ({
...subField,
type: 'object',
Expand Down

0 comments on commit 7a54b24

Please sign in to comment.