From a0f478df06bf86b33bf34ea3a34524caa073a3ad Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 23 Jun 2021 02:21:07 -0400 Subject: [PATCH] APIv4 Explorer - Only apply default limit 25 for "get" action The API Explorer sets a default limit of 25 so you don't get an overwhelming result set from a `get` action. However, for other actions like `getFields` or `getActions`, there is no need for a limit and the default is annoying. --- ang/api4Explorer/Explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 5cc419a646..f06e9ab353 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -458,7 +458,7 @@ default: format = 'raw'; } - if (name === 'limit') { + if (name === 'limit' && $scope.action === 'get') { defaultVal = 25; } if (name === 'debug') { -- 2.25.1