Compare commits
No commits in common. "eed187983b5160b2d7191bc3c16c08c8b1635a53" and "a34a97347b96af42f4a27d049c4c0b5429c933a9" have entirely different histories.
eed187983b
...
a34a97347b
3 changed files with 4 additions and 8 deletions
|
@ -22,7 +22,7 @@ const ConversationFrontend = React.forwardRef<HTMLDivElement, ConversationProps>
|
|||
({ messages, onStopClick, onResendClick, onEditClick, onCopyClick, isClicked }, ref: ForwardedRef<HTMLDivElement>) => {
|
||||
const [isScrolling, setIsScrolling] = useState(true);
|
||||
const messagesEndRef = useRef<HTMLDivElement | null>(null);
|
||||
const [chatHistory] = useChatHistory()
|
||||
const [chatHistory, setChatHistory, setSelectedIndex] = useChatHistory()
|
||||
|
||||
useEffect(() => {
|
||||
const observer = new IntersectionObserver(
|
||||
|
|
|
@ -8,10 +8,6 @@ const History: React.FC = () => {
|
|||
|
||||
const handleEditButtonClick = () => {
|
||||
setIsEditing(true);
|
||||
|
||||
/* Thank you Eslint for this masterpiece of a code snippet */
|
||||
setChatHistory(chatHistory)
|
||||
/* Wow i feel so secure now */
|
||||
};
|
||||
|
||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
|
|
|
@ -40,10 +40,10 @@ export function importSettings(jsonData: string): void {
|
|||
}
|
||||
|
||||
export const sendToDatabase = async () => {
|
||||
const useName = localStorage.getItem("accountName")
|
||||
const usePassword = localStorage.getItem("accountPassword")
|
||||
let useName = localStorage.getItem("accountName")
|
||||
let usePassword = localStorage.getItem("accountPassword")
|
||||
if (useName && usePassword) {
|
||||
const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
|
||||
let result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
|
||||
if (result == true) {
|
||||
alert('Data has been transferred')
|
||||
window.location.reload();
|
||||
|
|
Loading…
Reference in a new issue