diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index d5d8c7c37..b719a048c 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -631,7 +631,9 @@ watch( onMounted(() => { setTimeout(() => { - quickInputRef.value.textarea.style.height = '0' + if (quickInputRef.value) { + quickInputRef.value.textarea.style.height = '0' + } }, 1000) })