Fix some React lifecycle and rendering errors that exist in build
This commit is contained in:
@@ -388,11 +388,9 @@ export const ClientConfigStore: FC = () => {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!accessToken) {
|
||||
return;
|
||||
if (accessToken) {
|
||||
getChatHistory();
|
||||
}
|
||||
|
||||
getChatHistory();
|
||||
}, [accessToken]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user