From c0a7504be336dbdb81f42c1d83a47510d193a765 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 27 Feb 2022 21:02:16 -0500 Subject: [PATCH] Fix API4 Explorer undefined variable error --- 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 cedc623e38..113d9db832 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -688,13 +688,13 @@ var code = {}, entity = $scope.entity, action = $scope.action, - args = getEntity(entity).class_args || [], params = getParams(), index = isInt($scope.index) ? +$scope.index : parseYaml($scope.index), result = 'result'; if ($scope.entity && $scope.action) { delete params.debug; if (action.slice(0, 3) === 'get') { + var args = getEntity(entity).class_args || []; result = args[0] ? _.camelCase(args[0]) : entity; result = lcfirst(action.replace(/s$/, '').slice(3) || result); } -- 2.25.1