Skip to content

Commit

Permalink
Merge pull request #985 from hubmapconsortium/dtfix
Browse files Browse the repository at this point in the history
Converts DataType set into array to fix missing datatype info on save
  • Loading branch information
yuanzhou committed Nov 28, 2022
2 parents dc591e7 + 639e616 commit 6ab6984
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/src/components/ingest/dataset_edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1020,11 +1020,15 @@ class DatasetEdit extends Component {
// data_types: uniqueDT,
// })


// Can't stringify a set within json
var dataTypeArray = Array.from(this.state.data_types);

// package the data up
let data = {
lab_dataset_id: this.state.lab_dataset_id,
contains_human_genetic_sequences: this.state.contains_human_genetic_sequences,
data_types: this.state.data_types,
data_types: dataTypeArray,
description: this.state.description,
dataset_info: this.state.dataset_info,
};
Expand Down

0 comments on commit 6ab6984

Please sign in to comment.