Skip to content

Commit

Permalink
fix: Chart subscriptions shouldn't reverse positions (#6547)
Browse files Browse the repository at this point in the history
Fixes DH-18389
Backport #6546
  • Loading branch information
niloc132 authored Jan 10, 2025
1 parent 9df24a2 commit b86d9d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void update(AbstractTableSubscription.SubscriptionEventData tableData) {

private void replaceDataRange(SubscriptionTableData tableData, Range positions) {
RangeSet keys = tableData.getFullIndex().getRange()
.subsetForPositions(RangeSet.ofRange(positions.getFirst(), positions.getLast()), true);
.subsetForPositions(RangeSet.ofRange(positions.getFirst(), positions.getLast()), false);
// we don't touch the indexes at all, only need to walk each column and replace values in this range
for (Entry<String, Map<JsFunction<Any, Any>, JsArray<Any>>> columnMap : cachedData.entrySet()) {
Column col = table.findColumn(columnMap.getKey());
Expand Down

0 comments on commit b86d9d1

Please sign in to comment.