We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 444078b + 43c7eed commit be08fa2Copy full SHA for be08fa2
src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
@@ -123,8 +123,9 @@
123
let loadFileEditor = false;
124
125
$: {
126
- loadTextEditor = TEXT_EDITORS.includes(lastBotMsg?.rich_content?.editor || '');
127
- loadFileEditor = FILE_EDITORS.includes(lastBotMsg?.rich_content?.editor || '');
+ const editor = lastBotMsg?.rich_content?.editor || '';
+ loadTextEditor = TEXT_EDITORS.includes(editor) || !Object.values(EditorType).includes(editor);
128
+ loadFileEditor = FILE_EDITORS.includes(editor);
129
loadEditor = !isSendingMsg && !isThinking && (loadTextEditor || loadFileEditor);
130
}
131
0 commit comments