fix(mail-merge): Preserve linked tokens when importing new csv

- If the new imported csv contains columns with the same name as the
imported one, any tokens linked to those columns will be preserved
- Any tokens linked to columns that no longer exist will be removed
- Other fixes
This commit is contained in:
Juan Tejada 2016-05-02 12:15:56 -07:00
parent e3bfa747c5
commit 185d73b526
2 changed files with 4 additions and 3 deletions

View file

@ -66,8 +66,8 @@ class EditableCell extends Component {
}
render() {
const {rowIdx, colIdx, tableData: {rows}, isHeader, inputProps, InputRenderer} = this.props
const cellValue = rows[rowIdx][colIdx] || ''
const {rowIdx, colIdx, tableData, isHeader, inputProps, InputRenderer} = this.props
const cellValue = tableData.rows[rowIdx][colIdx] || ''
return (
<SelectableCell ref="cell" {...this.props}>
@ -76,6 +76,7 @@ class EditableCell extends Component {
type="text"
rowIdx={rowIdx}
colIdx={colIdx}
tableData={tableData}
isHeader={isHeader}
defaultValue={cellValue}
onBlur={::this.onInputBlur}

@ -1 +1 @@
Subproject commit c1346c184b4628109bfd47fbd667f0961a130999
Subproject commit c62ed6110a8c161c838188019c8d33273a129c50