Skip to content

Commit 6cad568

Browse files
committed
#RI-5852 - remove duplicated code
1 parent dd93c96 commit 6cad568

File tree

1 file changed

+0
-4
lines changed
  • redisinsight/ui/src/components/side-panels/panels/ai-assistant/components/shared/chat-history

1 file changed

+0
-4
lines changed

redisinsight/ui/src/components/side-panels/panels/ai-assistant/components/shared/chat-history/ChatHistory.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ const ChatHistory = (props: Props) => {
4545
const observerRef: MutableRefObject<Nullable<MutationObserver>> = useRef(null)
4646
const scrollBehavior = useRef<ScrollBehavior>('auto')
4747

48-
useEffect(() => {
49-
if (inProgressMessage?.content === '') scrollToBottomThrottled()
50-
}, [inProgressMessage])
51-
5248
useEffect(() => {
5349
if (!autoScroll) return undefined
5450
if (!listRef.current) return undefined

0 commit comments

Comments
 (0)