fix: remove unused useMemo import and fix optimisticMessage type mismatch

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ValueOn AG 2026-02-12 00:45:26 +01:00
parent a83aa31df7
commit eb02c1073d
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import React, { useState, useMemo } from 'react'; import React, { useState } from 'react';
import ReactMarkdown from 'react-markdown'; import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm'; import remarkGfm from 'remark-gfm';
import { FaExclamationTriangle } from 'react-icons/fa'; import { FaExclamationTriangle } from 'react-icons/fa';

View file

@ -330,7 +330,7 @@ export function useDashboardInputForm(instanceId: string) {
); );
if (!firstBackendMsg) { if (!firstBackendMsg) {
// Backend "first" message not yet arrived - show optimistic message // Backend "first" message not yet arrived - show optimistic message
allMessages.push(optimisticMessage); allMessages.push({ ...optimisticMessage, documents: (optimisticMessage as any).documents });
} }
// If firstBackendMsg exists, the useEffect above will clear optimistic on next render // If firstBackendMsg exists, the useEffect above will clear optimistic on next render
} }