From 46cc635e055d4d37e4d86f99ff429df061730db6 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 29 Mar 2024 12:35:04 +0800 Subject: [PATCH] fix: error status code --- web/app/components/workflow/constants.ts | 2 +- web/app/components/workflow/nodes/http/panel.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/constants.ts b/web/app/components/workflow/constants.ts index 95845af7c4..4c08157b8a 100644 --- a/web/app/components/workflow/constants.ts +++ b/web/app/components/workflow/constants.ts @@ -382,7 +382,7 @@ export const HTTP_REQUEST_OUTPUT_STRUCT: Var[] = [ }, { variable: 'status_code', - type: VarType.string, + type: VarType.number, }, { variable: 'headers', diff --git a/web/app/components/workflow/nodes/http/panel.tsx b/web/app/components/workflow/nodes/http/panel.tsx index f809f21bad..1084c3a3e2 100644 --- a/web/app/components/workflow/nodes/http/panel.tsx +++ b/web/app/components/workflow/nodes/http/panel.tsx @@ -154,7 +154,7 @@ const Panel: FC> = ({ />