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>
|
||||||
<Match when={forms().length > 0}>
|
<Match when={forms().length > 0}>
|
||||||
<Show when={forms()[0]?.id} keyed>
|
<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>
|
</Show>
|
||||||
</Match>
|
</Match>
|
||||||
<Match when={composer.open || !!session()?.parentID}>{null}</Match>
|
<Match when={composer.open || !!session()?.parentID}>{null}</Match>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue