Fix api creation on reload

This commit is contained in:
Prayag Prajapati committed 2023-11-20 19:18:43 +05:30
1 parent 27e2ee971d
commit 6e22c545b1
4 files changed
+8 -21

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ const init = async () => {
userOnDisk.Name,
userOnDisk.Password,
);
createApi(defaultServerInfo.address, auth.AccessToken);
createApi(defaultServerInfo.address, auth.data.AccessToken);
setInitialRoute("/home");
// window.startingRoute("/home");
} catch (error) {