diff --git a/vuu-ui/packages/vuu-datagrid/src/Viewport.tsx b/vuu-ui/packages/vuu-datagrid/src/Viewport.tsx index b3d9db874..79398ef93 100644 --- a/vuu-ui/packages/vuu-datagrid/src/Viewport.tsx +++ b/vuu-ui/packages/vuu-datagrid/src/Viewport.tsx @@ -30,7 +30,7 @@ export interface ViewportScrollApi { // Temp, until we manage selection properly const getSelectedRows = (data: DataSourceRow[]) => { - return data.filter((d) => d[metadataKeys.SELECTED] === 1); + return data.filter((d) => d[metadataKeys.SELECTED] !== 0); }; export const Viewport = forwardRef(function Viewport( diff --git a/vuu-ui/packages/vuu-table/src/table-next/moving-window.ts b/vuu-ui/packages/vuu-table/src/table-next/moving-window.ts index 86ada0a16..5b669e6c5 100644 --- a/vuu-ui/packages/vuu-table/src/table-next/moving-window.ts +++ b/vuu-ui/packages/vuu-table/src/table-next/moving-window.ts @@ -61,6 +61,6 @@ export class MovingWindow { } getSelectedRows() { - return this.data.filter((row) => row[SELECTED] === 1); + return this.data.filter((row) => row[SELECTED] !== 0); } } diff --git a/vuu-ui/packages/vuu-table/src/table/useDataSource.ts b/vuu-ui/packages/vuu-table/src/table/useDataSource.ts index 504a6081e..11bd8a041 100644 --- a/vuu-ui/packages/vuu-table/src/table/useDataSource.ts +++ b/vuu-ui/packages/vuu-table/src/table/useDataSource.ts @@ -257,6 +257,6 @@ export class MovingWindow { } getSelectedRows() { - return this.data.filter((row) => row[SELECTED] === 1); + return this.data.filter((row) => row[SELECTED] !== 0); } } diff --git a/vuu-ui/packages/vuu-ui-controls/src/instrument-picker/moving-window.ts b/vuu-ui/packages/vuu-ui-controls/src/instrument-picker/moving-window.ts index 315869432..d79a3bd5f 100644 --- a/vuu-ui/packages/vuu-ui-controls/src/instrument-picker/moving-window.ts +++ b/vuu-ui/packages/vuu-ui-controls/src/instrument-picker/moving-window.ts @@ -63,6 +63,6 @@ export class MovingWindow { } getSelectedRows() { - return this.data.filter((row) => row[SELECTED] === 1); + return this.data.filter((row) => row[SELECTED] !== 0); } } diff --git a/vuu-ui/packages/vuu-ui-controls/src/instrument-search/moving-window.ts b/vuu-ui/packages/vuu-ui-controls/src/instrument-search/moving-window.ts index 315869432..d79a3bd5f 100644 --- a/vuu-ui/packages/vuu-ui-controls/src/instrument-search/moving-window.ts +++ b/vuu-ui/packages/vuu-ui-controls/src/instrument-search/moving-window.ts @@ -63,6 +63,6 @@ export class MovingWindow { } getSelectedRows() { - return this.data.filter((row) => row[SELECTED] === 1); + return this.data.filter((row) => row[SELECTED] !== 0); } } diff --git a/vuu-ui/sample-apps/feature-instrument-tiles/src/moving-window.ts b/vuu-ui/sample-apps/feature-instrument-tiles/src/moving-window.ts index 86ada0a16..5b669e6c5 100644 --- a/vuu-ui/sample-apps/feature-instrument-tiles/src/moving-window.ts +++ b/vuu-ui/sample-apps/feature-instrument-tiles/src/moving-window.ts @@ -61,6 +61,6 @@ export class MovingWindow { } getSelectedRows() { - return this.data.filter((row) => row[SELECTED] === 1); + return this.data.filter((row) => row[SELECTED] !== 0); } }