[#51,bugfix][xs]: fix bug in pulling of fields from document in createDataset (corrects error in 5fc486d808).
This commit is contained in:
@@ -29,8 +29,8 @@ this.recline.Backend = this.recline.Backend || {};
|
||||
datasetInfo.fields = fields;
|
||||
} else {
|
||||
if (data) {
|
||||
datasetInfo.fields = _.map(data[0], function(cell) {
|
||||
return {id: cell};
|
||||
datasetInfo.fields = _.map(data[0], function(value, key) {
|
||||
return {id: key};
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user