mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
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:
parent
e3bfa747c5
commit
185d73b526
2 changed files with 4 additions and 3 deletions
|
@ -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}
|
||||
|
|
2
src/pro
2
src/pro
|
@ -1 +1 @@
|
|||
Subproject commit c1346c184b4628109bfd47fbd667f0961a130999
|
||||
Subproject commit c62ed6110a8c161c838188019c8d33273a129c50
|
Loading…
Reference in a new issue