Skip to content

Commit

Permalink
Do not export empty ValueSets.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicode committed Aug 18, 2020
1 parent afa530e commit a8fde3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/menu/Download.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ class Download extends Component {
delete s.name;
}

// Remove empty code value sets
if(s['codes'] !== undefined){
s['codes'].forEach( c => {
if (c.value_set !== undefined && !c.value_set){
delete c.value_set;
}
})
}

// find table transitions and delete state data
if (s.lookup_table_transition !== undefined){
let name = s.lookup_table_transition.lookup_table_name_ModuleBuilder;
Expand Down

0 comments on commit a8fde3f

Please sign in to comment.