mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 06:14:51 +00:00
update catch block
This commit is contained in:
1 parent
a185b2a12a
commit
6a024b0ced
1 file changed
+1
-1
@@ -103,7 +103,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Failed to fetch conversations: ', error);
|
||||
dispatch(setConversations({ ...conversations, loading: false }));
|
||||
dispatch(setConversations({ data: null, loading: false }));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user