@datarailsshared/dr_renderer 1.2.322-dragons → 1.2.323-dragons
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/package.json +1 -1
- package/src/dr_pivottable.js +4 -4
package/package.json
CHANGED
package/src/dr_pivottable.js
CHANGED
@@ -198,11 +198,12 @@ let initDRPivotTable = function($, window, document) {
|
|
198
198
|
let flatRowKey = rowKey.join(delim);
|
199
199
|
let flatColKey = colKey.join(delim);
|
200
200
|
|
201
|
-
if (this.keysLength === rowKey.length + colKey.length
|
202
|
-
|
201
|
+
if (this.keysLength === rowKey.length + colKey.length) {
|
202
|
+
const isDrValuesRows = this.rowAttrs.length === 1 && this.rowAttrs[0] === 'DR_Values';
|
203
|
+
if ((!this.isKeysSortingDoneOnBackendSide || isDrValuesRows) && !this.rowKeys.some(rKey => rKey.join(delim) === flatRowKey)) {
|
203
204
|
this.rowKeys.push(rowKey);
|
204
205
|
}
|
205
|
-
if (!this.colKeys.some(cKey => cKey.join(delim) === flatColKey)) {
|
206
|
+
if (!this.isKeysSortingDoneOnBackendSide && !this.colKeys.some(cKey => cKey.join(delim) === flatColKey)) {
|
206
207
|
this.colKeys.push(colKey);
|
207
208
|
}
|
208
209
|
}
|
@@ -234,7 +235,6 @@ let initDRPivotTable = function($, window, document) {
|
|
234
235
|
insight: insight,
|
235
236
|
});
|
236
237
|
}
|
237
|
-
|
238
238
|
return;
|
239
239
|
}
|
240
240
|
|