Skip to content

Commit

Permalink
fix: call _.defaults with correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDadi committed Sep 2, 2024
1 parent 85f416c commit 123c446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wsdl/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export class RestrictionElement extends Element {
};
if (typeElement) {
const base = typeElement.description(definitions, schema.xmlns);
desc = typeof base === 'string' ? base : _.defaults(base, desc);
desc = typeof base === 'string' ? base : _.defaults(desc, base);
}
return desc;
}
Expand Down

0 comments on commit 123c446

Please sign in to comment.