@trudb/tru-common-lib 0.2.348 → 0.2.349
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.
|
@@ -7736,11 +7736,11 @@ class TruDataGrid {
|
|
|
7736
7736
|
let childToAssociate = this.dataContext.entityAccess().searchByRefCacheOnly(unassociatedType, ref, true);
|
|
7737
7737
|
if (childToAssociate) {
|
|
7738
7738
|
let enhancedEntity = this.enhanceRowDataForEntity(newEntity);
|
|
7739
|
-
enhancedEntity.$entity[
|
|
7739
|
+
enhancedEntity.$entity[this.config.resultConfig.entityManyToManyTypeNameWithPrefix + 'Ref'] = childToAssociate[unassociatedType.name + 'Ref'];
|
|
7740
7740
|
enhancedEntity.$entity[this.config.parentTableRelationshipRefName] = this.entity[this.config.parentTableRefName];
|
|
7741
7741
|
// remove item from the add dropdown control
|
|
7742
7742
|
let itemIndex = this.unassociatedChoices.findIndex((choice) => {
|
|
7743
|
-
return choice[
|
|
7743
|
+
return choice[this.config.resultConfig.entityManyToManyTypeNameWithPrefix + 'Ref'] === childToAssociate[unassociatedType.name + 'Ref'];
|
|
7744
7744
|
});
|
|
7745
7745
|
this.unassociatedChoices.splice(itemIndex, 1);
|
|
7746
7746
|
// clear add selection
|