update store when items are received so observable works

This commit is contained in:
Mads Rasmussen
2023-10-01 21:50:30 +02:00
parent 75cac73742
commit d1e433b2cf

View File

@@ -29,6 +29,10 @@ export class UmbUserGroupCollectionRepository implements UmbCollectionRepository
const { data, error } = await this.#collectionSource.filterCollection(filter);
if (data) {
this.#detailStore?.appendItems(data.items);
}
return { data, error, asObservable: () => this.#detailStore!.all() };
}
}