fix(tui): prevent duplicate message forks (#38240)
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
03474816ea
commit
aea36d7630
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ export function DialogFork(props: { sessionID: string; messageID?: string; onMov
|
||||||
const client = useClient()
|
const client = useClient()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
const [pending, setPending] = createSignal(false)
|
const [pending, setPending] = createSignal(!!props.messageID)
|
||||||
|
|
||||||
const fork = async (messageID?: string) => {
|
const fork = async (messageID?: string) => {
|
||||||
setPending(true)
|
setPending(true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue