@trudb/tru-common-lib 0.2.349 → 0.2.351

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.
@@ -7740,7 +7740,7 @@ class TruDataGrid {
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[this.config.resultConfig.entityManyToManyTypeNameWithPrefix + 'Ref'] === childToAssociate[unassociatedType.name + 'Ref'];
7743
+ return choice.value.$ === childToAssociate[unassociatedType.name + 'Ref'];
7744
7744
  });
7745
7745
  this.unassociatedChoices.splice(itemIndex, 1);
7746
7746
  // clear add selection
@@ -8193,12 +8193,12 @@ class TruDataGrid {
8193
8193
  if (searchLocally) {
8194
8194
  joins.push(this.dataContext.entityAccess().searchCacheOnly(this.config.resultConfig.entityType, setupQuery, this.config.resultConfig.expands));
8195
8195
  if (this.gridType === TruDataGridTypes.DetailManyToMany && this.config.tableConfig.canAdd)
8196
- joins.push(this.dataContext.entityAccess().searchQueryChoices(this.config.resultConfig.entityManyToManyType, this.config.resultConfig.manyToManySetupQuery(this.entity), false));
8196
+ joins.push(this.config.resultConfig.manyToManyQueryChoices());
8197
8197
  }
8198
8198
  else {
8199
8199
  joins.push(this.dataContext.entityAccess().search(this.config.resultConfig.entityType, setupQuery, this.config.resultConfig.expands, false));
8200
8200
  if (this.gridType === TruDataGridTypes.DetailManyToMany && this.config.tableConfig.canAdd)
8201
- joins.push(this.dataContext.entityAccess().searchQueryChoices(this.config.resultConfig.entityManyToManyType, this.config.resultConfig.manyToManySetupQuery(this.entity), true));
8201
+ joins.push(this.config.resultConfig.manyToManyQueryChoices());
8202
8202
  }
8203
8203
  this.latestSetupQuery = setupQuery;
8204
8204
  forkJoin(joins).subscribe({