Bugfix: Collection: determine if the filter's skip has a preconfigured value

This commit is contained in:
leekelleher
2024-05-23 08:18:37 +01:00
parent 8461845582
commit b0b3d8cd7f

View File

@@ -120,11 +120,14 @@ export class UmbDefaultCollectionContext<
this.pagination.setPageSize(this.#config.pageSize);
}
const filterValue = this.#filter.getValue() as FilterModelType;
this.#filter.setValue({
...this.#defaultFilter,
...this.#config,
...this.#filter.getValue(),
skip: 0,
...filterValue,
skip: filterValue.skip ?? 0,
take: this.#config.pageSize,
});