From 9c789b88c44451074c4504f8f5b1f790a9500900 Mon Sep 17 00:00:00 2001 From: Katherine Date: Mon, 28 Apr 2025 21:01:35 +0800 Subject: [PATCH] fix: custom request response set to variable not displaying correctly (#6793) --- .../src/client/hooks/useCustomizeRequestActionProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts index deafba7833..90de1760b4 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/hooks/useCustomizeRequestActionProps.ts @@ -89,7 +89,7 @@ export const useCustomizeRequestActionProps = () => { variables, localVariables: [ ...localVariables, - { name: '$nResponse', ctx: new Proxy({ ...res?.data, ...res?.data?.data }, {}) }, + { name: '$nResponse', ctx: new Proxy({ ...res?.data?.data, ...res?.data }, {}) }, ], }); successMessage = interpolateVariables(exp, expScope);