Skip to content

Commit

Permalink
Synced from the Blueshift Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueshift Staff committed Apr 10, 2024
1 parent ed71179 commit 86a254d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { ColumnOperationFactory } from './column-operations/_column-operation.fa
import { GridOperationFactory } from './grid-operations/_grid-operation.factory'
import { RowOperationFactory } from './row-operations/_row-operation.factory'
import { GridSelectionController } from './selection/grid-selection.controller'
import { DefaultKeyboardShortcuts } from './default-keyboard-shortcuts'

export const DATA_GRIDS_FOCUSED_TREE: string[] = []

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { GridCellCoordinates } from '.'
import { IGridCellCoordinates, IGridCellValue } from '..'
import { DeepClone } from '../../../utils/deep-clone'
import { TColumnKey, TPrimaryKey } from '../../types'

export class GridCellValue implements IGridCellValue {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class GridRow implements IGridRow {
return new GridRow(
this._primaryKeyColumn,
new Map<TColumnKey, IGridCellValue>(this.valuesArray.map(itm => {
var newValue = new GridCellValue(new GridCellCoordinates(itm.value.rowKey, itm.value.columnKey), DeepClone(itm.value))
var newValue = new GridCellValue(new GridCellCoordinates(itm.value.rowKey, itm.value.columnKey), DeepClone(itm.value.value))
if(newPrimaryKey) {
newValue.rowKey = newPrimaryKey
if (itm.columnKey === this._primaryKeyColumn) {
Expand Down

0 comments on commit 86a254d

Please sign in to comment.