File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import debounce from 'lodash/debounce' ;
2
2
import { SetterOrUpdater , useRecoilValue } from 'recoil' ;
3
- import { useState , useEffect , useMemo , useCallback } from 'react' ;
4
- import { LocalStorageKeys , TFile } from 'librechat-data-provider' ;
3
+ import { useCallback , useEffect , useMemo , useState } from 'react' ;
4
+ import { Constants , LocalStorageKeys , TFile } from 'librechat-data-provider' ;
5
5
import type { ExtendedFile } from '~/common' ;
6
6
import { useChatFormContext } from '~/Providers' ;
7
7
import { useGetFiles } from '~/data-provider' ;
@@ -164,7 +164,7 @@ export const useAutoSave = ({
164
164
if ( ! saveDrafts || conversationId == null || conversationId === '' ) {
165
165
return ;
166
166
}
167
- if ( conversationId === currentConversationId ) {
167
+ if ( conversationId === currentConversationId || conversationId === Constants . PENDING_CONVO ) {
168
168
return ;
169
169
}
170
170
You can’t perform that action at this time.
0 commit comments