Skip to content

Commit

Permalink
make sure array-data-source send rows to client on subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
heswell committed Sep 13, 2024
1 parent 9efda62 commit 05e9fd1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
DataSourceConfigChanges,
selectionCount,
isEditCellRequest,
rangesAreSame,
} from "@finos/vuu-utils";
import { aggregateData } from "./aggregate-utils";
import { buildDataToClientMap, toClientRow } from "./array-data-utils";
Expand Down Expand Up @@ -238,7 +239,7 @@ export class ArrayDataSource
type: "viewport-update",
size: this.#data.length,
});
if (range) {
if (range && !rangesAreSame(this.#range, range)) {
this.range = range;
} else if (this.#range !== NULL_RANGE) {
this.sendRowsToClient();
Expand Down

0 comments on commit 05e9fd1

Please sign in to comment.