handleRowConfirmChange (rowData) {
    const actionCreate = !!this.state.creating && this.state.creating === rowData.id
    const editedRow = this.state.editing[rowData.id]

    // TODO: Add field level validation for the edit or create fields

    this.props.onUpdate({ [actionCreate ? 'create' : 'update']: editedRow })
    this.handleRowCancelChange(rowData)
  }
// Push the new or editing row up via __onUpdate__
Push the new or editing row up via __onUpdate
Push the new or editing row up via __onUpdate
handleRowConfirmChange (rowData) {
    const actionCreate = !!this.state.creating && this.state.creating === rowData.id
    const editedRow = this.state.editing[rowData.id]
    this.props.onUpdate({ [actionCreate ? 'create' : 'update']: editedRow })
    this.handleRowCancelChange(rowData)
  }
handleRowConfirmChange ( rowData ) { const actionCreate = ! ! this . state . creating && this . state . creating === rowData . id const editedRow = this . state . editing [ rowData . id ] this . props . onUpdate ( { [ actionCreate ? 'create' : 'update' ] : editedRow } ) this . handleRowCancelChange ( rowData ) }
Push the new or editing row up via __onUpdate__
Push the new or editing row up via __onUpdate__
// TODO: Add field level validation for the edit or create fields