Skip to content

Commit

Permalink
fix array with null data
Browse files Browse the repository at this point in the history
  • Loading branch information
Tso79 committed Oct 9, 2024
1 parent 10be191 commit 3770eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/xsd/simpleType.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SimpleType extends XSDElement {
let memberTypes = [];
memberTypes.union = true; // Set the union flag to true
this.union.postProcess(definitions);
if (this.union.memberTypes) {
if (this.union.memberTypes && !this.union.memberTypes.includes(null)) {
this.union.memberTypes.forEach(function(t) {
t.postProcess(definitions);
memberTypes.push(t.type);
Expand Down

0 comments on commit 3770eae

Please sign in to comment.