@dereekb/dbx-form 13.6.7 → 13.6.8
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.
|
@@ -2283,7 +2283,7 @@ class AbstractDbxPickableItemFieldDirective extends FieldType$1 {
|
|
|
2283
2283
|
filteredSearchResults$ = this.filteredSearchResultsState$.pipe(map((x) => x?.value), filterMaybe(), shareReplay(1));
|
|
2284
2284
|
items$ = combineLatest([this.filteredSearchResults$, this.values$]).pipe(map(([displayValues, values]) => {
|
|
2285
2285
|
const selectedHashValuesSet = new Set(values.map((x) => this.hashForValue(x)));
|
|
2286
|
-
let items = displayValues.map((x) => ({ itemValue: x, selected: selectedHashValuesSet.has(x._hash) }));
|
|
2286
|
+
let items = displayValues.map((x) => ({ itemValue: x, key: String(x._hash), selected: selectedHashValuesSet.has(x._hash) }));
|
|
2287
2287
|
if (this.sortItems) {
|
|
2288
2288
|
items = this.sortItems(items);
|
|
2289
2289
|
}
|