mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(ui): fix flash between home and new chat (#4143)
Co-authored-by: Theodore Li <theo@sim.ai>
This commit is contained in:
co-authored by
Theodore Li
parent
6587afb97e
commit
d6dc9f73cd
@@ -1601,9 +1601,11 @@ export function useChat(
|
||||
})
|
||||
}
|
||||
if (!workflowIdRef.current) {
|
||||
router.replace(`/workspace/${workspaceId}/task/${payloadChatId}`, {
|
||||
scroll: false,
|
||||
})
|
||||
window.history.replaceState(
|
||||
null,
|
||||
'',
|
||||
`/workspace/${workspaceId}/task/${payloadChatId}`
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user