Skip to content

Commit

Permalink
348 do not cast values when editing the Grid (#538)
Browse files Browse the repository at this point in the history
* Do not cast values on the front-end
  • Loading branch information
pdelboca authored Sep 9, 2024
1 parent 96bb94b commit 777acf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/store/actions/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ export function saveTableEditing(context: any) {
if (!table || !grid) return

// Don't save if not changed
let value = context.value
const value = context.value
if (value === table.initialEditingValue) return

const rowNumber = context.rowId
const fieldName = context.columnId
if (context.cellProps.type === 'number') value = parseInt(value)

const change: types.IChange = {
type: 'cell-update',
rowNumber,
Expand Down

0 comments on commit 777acf1

Please sign in to comment.