Parcourir la source

fix: config not exists (#2513)

crazywoola il y a 1 an
Parent
commit
cad6e6624f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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'