Skip to content
Snippets Groups Projects

Fixed parser

Merged Alejandro De Maria Antolinos requested to merge demariaa/icat-plus:issue_62 into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -3,12 +3,12 @@
/** Converts the parameters grouped by id into a dataset structure defined in swagger */
var parametersToDatasetObject = (parametersGroupedByInvestigationId, investigation) => {
let datasets = {};
for (var datasetId in parametersGroupedByInvestigationId) {
for (var index in parametersGroupedByInvestigationId[datasetId]) {
var param = parametersGroupedByInvestigationId[datasetId][index];
var key = param[4];
var value = param[5];
var key = param[5];
var value = param[6];
if (datasets[datasetId] == null) {
datasets[datasetId] = {};
datasets[datasetId].parameters = [];
Loading