From fde865f9ca6dd1cb3e09fe723460cbbf580351a1 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Fri, 7 Jul 2023 12:30:20 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20chore(constants.tsx):=20refactor?= =?UTF-8?q?=20buildFlowScript=20function=20to=20use=20template=20literals?= =?UTF-8?q?=20for=20better=20readability=20and=20maintainability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/constants.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/constants.tsx b/src/frontend/src/constants.tsx index 19a417cc0..a31074a16 100644 --- a/src/frontend/src/constants.tsx +++ b/src/frontend/src/constants.tsx @@ -166,7 +166,7 @@ TWEAKS = ${ } flow = load_flow_from_json("${flowName}.json", tweaks=TWEAKS) # Now you can use it like any chain -flow("Hey, have you heard of Langflow?")`; +flow(${inputs})`; }; function buildTweakObject(tweak) {