From 9ecb6291a5aa88f641c5e055d7ca35d90237596a Mon Sep 17 00:00:00 2001 From: Adrian Pilarczyk Date: Fri, 12 May 2023 10:01:12 +0200 Subject: [PATCH] fix: :ambulance: channels not showing (#455) * fix: :ambulance: get first 100 of channels * build: :construction_worker: add changeset --- .changeset/lazy-experts-wave.md | 5 +++++ apps/taxes/src/modules/channels/channels-fetcher.ts | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/lazy-experts-wave.md diff --git a/.changeset/lazy-experts-wave.md b/.changeset/lazy-experts-wave.md new file mode 100644 index 0000000..03f9fbd --- /dev/null +++ b/.changeset/lazy-experts-wave.md @@ -0,0 +1,5 @@ +--- +"saleor-app-taxes": patch +--- + +Fix channels not showing in the channels list if there are too many of them. diff --git a/apps/taxes/src/modules/channels/channels-fetcher.ts b/apps/taxes/src/modules/channels/channels-fetcher.ts index 21019e6..5c7ab30 100644 --- a/apps/taxes/src/modules/channels/channels-fetcher.ts +++ b/apps/taxes/src/modules/channels/channels-fetcher.ts @@ -10,7 +10,11 @@ export class ChannelsFetcher { fetchChannels() { return this.client .query(TaxConfigurationsListDocument, { - first: 10, + /** + * todo: add pagination + * * arbitrary limit + */ + first: 100, } as TaxConfigurationsListQueryVariables) .toPromise() .then((r) => {