clean up
This commit is contained in:
parent
7d6f0c621f
commit
ed553f51f7
|
|
@ -63,7 +63,7 @@ interface ChatFormProps {
|
|||
chatId?: string;
|
||||
isDownloadingModel?: boolean;
|
||||
isDisabled?: boolean;
|
||||
initialDraft?: string; // Draft text to restore when switching chats
|
||||
initialDraft?: string;
|
||||
// Editing props - when provided, ChatForm enters edit mode
|
||||
editingMessage?: {
|
||||
content: string;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ export default function Settings() {
|
|||
const [isAwaitingConnection, setIsAwaitingConnection] = useState(false);
|
||||
const [connectionError, setConnectionError] = useState<string | null>(null);
|
||||
const [pollingInterval, setPollingInterval] = useState<number | null>(null);
|
||||
// const navigate = useNavigate();
|
||||
|
||||
const {
|
||||
data: settingsData,
|
||||
|
|
|
|||
|
|
@ -1290,7 +1290,6 @@ func (s *Server) updateDraft(w http.ResponseWriter, r *http.Request) error {
|
|||
return fmt.Errorf("invalid request body: %w", err)
|
||||
}
|
||||
|
||||
// Update the draft - use the efficient single-field update method
|
||||
if err := s.Store.UpdateChatDraft(cid, req.Draft); err != nil {
|
||||
return fmt.Errorf("failed to update draft: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue