chore: clean up console log

This commit is contained in:
Louis 2025-09-18 16:31:19 +07:00
parent 241a90492e
commit f271e8fe9c

View File

@ -38,8 +38,6 @@ function ThreadDetail() {
const chatWidth = useAppearance((state) => state.chatWidth)
const isSmallScreen = useSmallScreen()
// useTools()
const { messages } = useMessages(
useShallow((state) => ({
messages: state.messages[threadId],
@ -50,8 +48,6 @@ function ThreadDetail() {
const thread = useThreads(useShallow((state) => state.threads[threadId]))
const scrollContainerRef = useRef<HTMLDivElement>(null)
console.log('rerender')
useEffect(() => {
if (currentThreadId !== threadId) {
setCurrentThreadId(threadId)