fix(app): fix custom slash commands not showing on initial / (#6829)
This commit is contained in:
parent
c74c66e6b4
commit
65c7168492
1 changed files with 9 additions and 0 deletions
|
|
@ -439,6 +439,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
||||||
active: slashActive,
|
active: slashActive,
|
||||||
onInput: slashOnInput,
|
onInput: slashOnInput,
|
||||||
onKeyDown: slashOnKeyDown,
|
onKeyDown: slashOnKeyDown,
|
||||||
|
refetch: slashRefetch,
|
||||||
} = useFilteredList<SlashCommand>({
|
} = useFilteredList<SlashCommand>({
|
||||||
items: slashCommands,
|
items: slashCommands,
|
||||||
key: (x) => x?.id,
|
key: (x) => x?.id,
|
||||||
|
|
@ -493,6 +494,14 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
createEffect(
|
||||||
|
on(
|
||||||
|
() => sync.data.command,
|
||||||
|
() => slashRefetch(),
|
||||||
|
{ defer: true },
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
createEffect(
|
createEffect(
|
||||||
on(
|
on(
|
||||||
() => prompt.current(),
|
() => prompt.current(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue