@trudb/tru-common-lib 0.2.119 → 0.2.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5977,21 +5977,20 @@ class TruDataGridClipboard {
5977
5977
  }
5978
5978
  if (this.copiedRows.length) {
5979
5979
  this.copiedRows.forEach((copiedRow, index) => {
5980
- selectedRows.forEach((selectedRow) => {
5981
- let properties = copiedRow.entityType.getPropertyNames();
5982
- properties
5983
- .forEach((propertyName) => {
5984
- if (typeof selectedRow.$entity.setProperty !== 'undefined' &&
5985
- propertyName !== config.tableName + 'Ref' &&
5986
- propertyName !== 'Created' &&
5987
- propertyName !== 'CreatedRef' &&
5988
- propertyName !== 'Updated' &&
5989
- propertyName !== 'UpdatedRef' &&
5990
- propertyName !== 'rowver' &&
5991
- propertyName !== 'Merge_Data_Set' &&
5992
- !propertyName.startsWith('o'))
5993
- selectedRow.$entity.setProperty(propertyName, copiedRow.getProperty(propertyName));
5994
- });
5980
+ let selectedRow = selectedRows[index];
5981
+ let properties = copiedRow.entityType.getPropertyNames();
5982
+ properties
5983
+ .forEach((propertyName) => {
5984
+ if (typeof selectedRow.$entity.setProperty !== 'undefined' &&
5985
+ propertyName !== config.tableName + 'Ref' &&
5986
+ propertyName !== 'Created' &&
5987
+ propertyName !== 'CreatedRef' &&
5988
+ propertyName !== 'Updated' &&
5989
+ propertyName !== 'UpdatedRef' &&
5990
+ propertyName !== 'rowver' &&
5991
+ propertyName !== 'Merge_Data_Set' &&
5992
+ !propertyName.startsWith('o'))
5993
+ selectedRow.$entity.setProperty(propertyName, copiedRow.getProperty(propertyName));
5995
5994
  });
5996
5995
  });
5997
5996
  gridApi.refreshCells({ force: true });