Skip to content

Commit

Permalink
Merge branch 'beta-4.50.5' into beta-4.50.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Kononenko committed Jul 20, 2023
2 parents de89e82 + 9dae60b commit 8807376
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export class JsonSchemaFormPatchDirective {

const ref = item.items.find(x => x.type === '$ref');
if (ref) {

const dataItems = item.items.filter(x => x.type === 'section' || x.type === 'div');

const template = dataItems.length > 0
? dataItems.reduce((a, b) => a.id > b.id ? a : b)
: this.getItemTemplateFromRef(ref);
Expand Down

0 comments on commit 8807376

Please sign in to comment.