Skip to content

Commit

Permalink
Merge pull request dreamfactorysoftware#258 from dreamfactorysoftware…
Browse files Browse the repository at this point in the history
…/develop

Develop
  • Loading branch information
thekevinm authored May 31, 2024
2 parents 87d5501 + ac3f81d commit 90cc436
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,21 @@ export class DfServiceDetailsComponent implements OnInit {
return (
this.serviceTypes
.find(serviceType => serviceType.name === type)
?.configSchema.map(control => ({
...control,
name: snakeToCamelString(control.name),
items:
control.type === 'array'
? [
...((control.items as ConfigSchema[]) || []).map(
(each: ConfigSchema) => ({
...each,
name: snakeToCamelString(each.name),
})
),
]
: control.items,
})) ?? []
?.configSchema.map(control => {
const items =
control.type === 'array' && Array.isArray(control.items)
? control.items.map((each: ConfigSchema) => ({
...each,
name: snakeToCamelString(each.name),
}))
: control.items;

return {
...control,
name: snakeToCamelString(control.name),
items: items,
};
}) ?? []
);
}

Expand Down

0 comments on commit 90cc436

Please sign in to comment.