[#51,bugfix][xs]: fix bug in pulling of fields from document in createDataset (corrects error in 5fc486d808).

This commit is contained in:
Rufus Pollock
2012-03-31 11:09:10 +01:00
parent d68529c113
commit e3819d8f4e
2 changed files with 5 additions and 3 deletions

View File

@@ -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};
});
}
}