fix: 🚑 channels not showing (#455)
* fix: 🚑 get first 100 of channels * build: 👷 add changeset
This commit is contained in:
parent
b0eb078eea
commit
9ecb6291a5
2 changed files with 10 additions and 1 deletions
5
.changeset/lazy-experts-wave.md
Normal file
5
.changeset/lazy-experts-wave.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-app-taxes": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix channels not showing in the channels list if there are too many of them.
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue