@forzalabs/remora 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Constants.js
CHANGED
|
@@ -62,8 +62,15 @@ class PostProcessorClass {
|
|
|
62
62
|
}
|
|
63
63
|
return record;
|
|
64
64
|
}, options);
|
|
65
|
-
if (updatedDimensions
|
|
66
|
-
|
|
65
|
+
if (!updatedDimensions || updatedDimensions.length === 0) {
|
|
66
|
+
// This means that no updates were applied cause no records were present
|
|
67
|
+
// I need to force a fake update to get the new dimensions, since those might still have changed
|
|
68
|
+
const fakeRecord = new DatasetRecord_1.default('', dataset.getDimensions(), dataset.getDelimiter());
|
|
69
|
+
for (const update of dimensionsUpdates)
|
|
70
|
+
fakeRecord.wholeUpdateDimension(update);
|
|
71
|
+
updatedDimensions = fakeRecord._dimensions;
|
|
72
|
+
}
|
|
73
|
+
dataset.setDimensions(updatedDimensions);
|
|
67
74
|
return dataset;
|
|
68
75
|
});
|
|
69
76
|
/**
|