From a3f09949c0aef73bfaa8444aeb2775bc2fef501e Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 20 Jun 2024 03:29:50 -0700 Subject: [PATCH] refac --- .../components/workspace/Functions/FunctionEditor.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/components/workspace/Functions/FunctionEditor.svelte b/src/lib/components/workspace/Functions/FunctionEditor.svelte index b2a9ea652..9706bd65c 100644 --- a/src/lib/components/workspace/Functions/FunctionEditor.svelte +++ b/src/lib/components/workspace/Functions/FunctionEditor.svelte @@ -72,7 +72,13 @@ class Filter: print(f"outlet:body:{body}") print(f"outlet:user:{user}") - return body`; + messages = [ + {**message, "content": f"{message['content']} - @@Modified from Outlet"} + for message in body.get("messages", []) + ] + + return {"messages": messages} +`; const saveHandler = async () => { loading = true;