From 598584447f4af8f70d5279f3d50f6f5a1c808353 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 27 Jan 2021 16:32:31 +0800 Subject: [PATCH] fix(plugin-permissions): perPage = -1 --- packages/app/src/components/form.fields/permissions/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/app/src/components/form.fields/permissions/index.tsx b/packages/app/src/components/form.fields/permissions/index.tsx index 6c0ad32b9..889191849 100644 --- a/packages/app/src/components/form.fields/permissions/index.tsx +++ b/packages/app/src/components/form.fields/permissions/index.tsx @@ -19,6 +19,7 @@ Permissions.Actions = connect({ const { data = [], loading = true } = useRequest(() => { return api.resource('collections.actions').list({ associatedKey: resourceKey, + perPage: -1, }); }, { refreshDeps: [resourceKey] @@ -118,6 +119,7 @@ Permissions.Fields = connect<'TextArea'>({ const { data = [], loading = true } = useRequest(() => { return api.resource('collections.fields').list({ associatedKey: resourceKey, + perPage: -1, }); }, { refreshDeps: [resourceKey] @@ -211,6 +213,7 @@ Permissions.Tabs = connect<'TextArea'>({ const { data = [], loading = true, mutate } = useRequest(() => { return api.resource('collections.tabs').list({ associatedKey: resourceKey, + perPage: -1, }); }, { refreshDeps: [resourceKey]