Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes (attempt 2/3)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 1, 2024
1 parent 06f338b commit 0ad6be5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ee/tabby-ui/components/textarea-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default function TextAreaSearch({
isFollowup?: boolean
contextInfo?: ContextInfo
fetchingContextInfo: boolean
onValueChange?: (value: string | undefined) => void
}) {
const [isShow, setIsShow] = useState(false)
const [isFocus, setIsFocus] = useState(false)
Expand Down Expand Up @@ -102,8 +103,9 @@ export default function TextAreaSearch({
}, [])

useEffect(() => {
if (!modelName)
if (!modelName) {
onModelSelect(modelInfo?.chat?.length ? modelInfo?.chat[0] : '')
}
}, [modelInfo])

const onWrapperClick = () => {
Expand Down

0 comments on commit 0ad6be5

Please sign in to comment.