adjust filter for language requestCollection so we use the default (currently set to 100)

This commit is contained in:
Jacob Overgaard
2024-02-20 10:25:31 +01:00
parent 222123e7fa
commit 01923ff5eb
5 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ export class UmbDictionaryTableCollectionViewElement extends UmbLitElement {
async #observeCollectionItems() {
if (!this.#collectionContext) return;
const { data: languageData } = await this.#languageCollectionRepository.requestCollection({ skip: 0, take: 1000 });
const { data: languageData } = await this.#languageCollectionRepository.requestCollection({});
if (!languageData) return;
this.observe(

View File

@@ -28,7 +28,7 @@ export class UmbWorkspaceViewDictionaryEditorElement extends UmbLitElement {
}
async firstUpdated() {
const { data } = await this.#languageCollectionRepository.requestCollection({ skip: 0, take: 200 });
const { data } = await this.#languageCollectionRepository.requestCollection({});
if (data) {
this._languages = data.items;
}

View File

@@ -51,7 +51,7 @@ export class UmbCultureAndHostnamesModalElement extends UmbModalBaseElement<
}
async #requestLanguages() {
const { data } = await this.#languageCollectionRepository.requestCollection({ skip: 0, take: 500 });
const { data } = await this.#languageCollectionRepository.requestCollection({});
if (!data) return;
this._languageModel = data.items;
}

View File

@@ -42,7 +42,7 @@ export class UmbAppLanguageSelectElement extends UmbLitElement {
}
async #observeLanguages() {
const { data } = await this.#collectionRepository.requestCollection({ skip: 0, take: 1000 });
const { data } = await this.#collectionRepository.requestCollection({});
// TODO: listen to changes
if (data) {

View File

@@ -25,7 +25,7 @@ export class UmbLanguagePickerModalElement extends UmbModalBaseElement<
}
async firstUpdated() {
const { data } = await this.#collectionRepository.requestCollection({ skip: 0, take: 1000 });
const { data } = await this.#collectionRepository.requestCollection({});
this._languages = data?.items ?? [];
}