mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
[FIX] Hide TTS and more actions on chat reset message (#1850)
hide TTS and more actions on chat reset message
This commit is contained in:
parent
85e5866be6
commit
881c4bc4de
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ function ActionMenu({ chatId, forkThread, isEditing, role }) {
|
|||
};
|
||||
}, []);
|
||||
|
||||
if (isEditing || role === "user") return null;
|
||||
if (!chatId || isEditing || role === "user") return null;
|
||||
|
||||
return (
|
||||
<div className="mt-2 -ml-0.5 relative" ref={menuRef}>
|
||||
|
|
|
@ -16,7 +16,7 @@ export default function TTSMessage({ slug, chatId, message }) {
|
|||
getSettings();
|
||||
}, []);
|
||||
|
||||
if (loading) return null;
|
||||
if (!chatId || loading) return null;
|
||||
if (provider !== "native")
|
||||
return <AsyncTTSMessage slug={slug} chatId={chatId} />;
|
||||
return <NativeTTSMessage message={message} />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue