Skip to content

Commit

Permalink
make sure array-data-source send rows to client on subscribe (#1492)
Browse files Browse the repository at this point in the history
* make sure array-data-source send rows to client on subscribe

* upgrade deprecated github upload action
  • Loading branch information
heswell authored Sep 13, 2024
1 parent 9efda62 commit 281e4d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cve-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
--enableRetired
- name: Upload Test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Depcheck report
path: ${{ github.workspace }}/reports
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 281e4d2

Please sign in to comment.