Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): "update promt" on submit of prompt form

Marc Klingen32f4e5c64f10
diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsx
index ae9db4656b..ba8f30950c 100644
--- a/web/src/features/prompts/components/NewPromptForm/index.tsx
+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx
@@ -327,7 +327,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {
!initialPrompt && form.formState.errors.name?.message,
)} // Disable button if prompt name already exists. Check is dynamic and not part of zod schema
>
- Create prompt
+ {!initialPrompt ? "Create prompt" : "Update prompt"}
</Button>
</form>
{formError && (