mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-12-01 09:33:14 +00:00
removed async on local storage functions
This commit is contained in:
@@ -55,12 +55,11 @@ export default function APIKeyModal({
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
async function getRecentDocs() {
|
||||
const response = await getLocalRecentDocs();
|
||||
function getRecentDocs() {
|
||||
const response = getLocalRecentDocs();
|
||||
|
||||
if (response) {
|
||||
const parsedResponse = JSON.parse(response) as Doc;
|
||||
|
||||
dispatch(setSelectedDocs(parsedResponse));
|
||||
setLocalSelectedDocs(parsedResponse);
|
||||
setModalState('INACTIVE');
|
||||
|
||||
Reference in New Issue
Block a user