瀏覽代碼

fix: config not exists (#2513)

crazywoola 1 年之前
父節點
當前提交
cad6e6624f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/app/components/base/chat/chat/answer/operation.tsx

+ 1 - 1
web/app/components/base/chat/chat/answer/operation.tsx

@@ -74,7 +74,7 @@ const Operation: FC<OperationProps> = ({
         )
       }
 
-      {(!isOpeningStatement && config?.text_to_speech.enabled) && (
+      {(!isOpeningStatement && config?.text_to_speech?.enabled) && (
         <AudioBtn
           value={content}
           className='hidden group-hover:block'