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:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user