dont require the config fields as we have fallback values

This commit is contained in:
Mads Rasmussen
2023-11-29 11:41:59 +01:00
parent 8df817dbde
commit 83e2e181bf
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import { UmbArrayState, UmbObjectState, UmbStringState } from '@umbraco-cms/back
import { UmbRoute } from '@umbraco-cms/backoffice/router';
export interface UmbCollectionViewManagerConfig {
defaultViewAlias: string;
defaultViewAlias?: string;
}
export class UmbCollectionViewManager extends UmbBaseController {

View File

@@ -116,7 +116,7 @@ export class UmbDefaultCollectionContext<ItemType = any, FilterModelType extends
#configure(configuration: UmbCollectionConfiguration) {
this.selection.setMultiple(true);
this.pagination.setPageSize(configuration.pageSize);
this.pagination.setPageSize(configuration.pageSize!);
this.#filter.next({ ...this.#filter.getValue(), skip: 0, take: configuration.pageSize });
}

View File

@@ -3,8 +3,8 @@ import { Observable } from '@umbraco-cms/backoffice/external/rxjs';
import { UmbPaginationManager } from '@umbraco-cms/backoffice/utils';
export interface UmbCollectionConfiguration {
pageSize: number;
defaultViewAlias: string;
pageSize?: number;
defaultViewAlias?: string;
}
export interface UmbCollectionContext {