fix: 🚑 channels not showing (#455)

* fix: 🚑 get first 100 of channels

* build: 👷 add changeset
This commit is contained in:
Adrian Pilarczyk 2023-05-12 10:01:12 +02:00 committed by GitHub
parent b0eb078eea
commit 9ecb6291a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"saleor-app-taxes": patch
---
Fix channels not showing in the channels list if there are too many of them.

View file

@ -10,7 +10,11 @@ export class ChannelsFetcher {
fetchChannels() { fetchChannels() {
return this.client return this.client
.query(TaxConfigurationsListDocument, { .query(TaxConfigurationsListDocument, {
first: 10, /**
* todo: add pagination
* * arbitrary limit
*/
first: 100,
} as TaxConfigurationsListQueryVariables) } as TaxConfigurationsListQueryVariables)
.toPromise() .toPromise()
.then((r) => { .then((r) => {