Merge pull request #1867 from umbraco/bugfix/collection-filter-skip-preconfigured

Bugfix: Collection: determine if `filter.skip` has preconfigured value
This commit is contained in:
Jacob Overgaard
2024-05-23 11:07:36 +02:00
committed by GitHub

View File

@@ -120,11 +120,13 @@ 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,
});