mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-18 17:23:30 +00:00
fix(tui): key form prompt by id
This commit is contained in:
parent
3056187950
commit
4346bde102
1 changed files with 4 additions and 1 deletions
|
|
@ -950,7 +950,10 @@ export function Session() {
|
|||
</Match>
|
||||
<Match when={forms().length > 0}>
|
||||
<Show when={forms()[0]?.id} keyed>
|
||||
{() => <Show when={forms()[0]}>{(form) => <FormPrompt form={form()} />}</Show>}
|
||||
{(_) => {
|
||||
const form = forms()[0]
|
||||
return form ? <FormPrompt form={form} /> : null
|
||||
}}
|
||||
</Show>
|
||||
</Match>
|
||||
<Match when={composer.open || !!session()?.parentID}>{null}</Match>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue