mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-19 20:10:39 +09:00
Merge pull request #2442 from sparkeros/fix/capabilities-field-blank-screen
fix: prevent blank screen when clearing Capabilities field
This commit is contained in:
commit
f2a2049d17
1 changed files with 1 additions and 1 deletions
|
|
@ -518,7 +518,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
|
||||||
</Field>
|
</Field>
|
||||||
<Field label="Capabilities" hint={help.capabilities}>
|
<Field label="Capabilities" hint={help.capabilities}>
|
||||||
<MarkdownEditor
|
<MarkdownEditor
|
||||||
value={eff("identity", "capabilities", props.agent.capabilities ?? "")}
|
value={eff("identity", "capabilities", props.agent.capabilities ?? "") ?? ""}
|
||||||
onChange={(v) => mark("identity", "capabilities", v || null)}
|
onChange={(v) => mark("identity", "capabilities", v || null)}
|
||||||
placeholder="Describe what this agent can do..."
|
placeholder="Describe what this agent can do..."
|
||||||
contentClassName="min-h-[44px] text-sm font-mono"
|
contentClassName="min-h-[44px] text-sm font-mono"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue