1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: cell copy returns "undefined" in some conditions, closes #170

This commit is contained in:
2022-01-14 18:37:37 +01:00
parent 020ce36312
commit 8fb1f0803e
3 changed files with 5 additions and 4 deletions

View File

@ -403,10 +403,11 @@ export default {
};
this.$emit('update-field', params);
},
copyCell () {
copyCell (event) {
const row = this.localResults.find(row => this.selectedRows.includes(row._antares_id));
const cellName = Object.keys(row).find(prop => [
this.selectedCell.field,
this.selectedCell.orgField,
`${this.fields[0].table}.${this.selectedCell.field}`,
`${this.fields[0].tableAlias}.${this.selectedCell.field}`
].includes(prop));