Fix bug 63846 - Settings: Backup. Reset the selected folder when connecting to another account.

This commit is contained in:
Tatiana Lopaeva 2023-08-28 16:43:39 +03:00
parent 0f47decca6
commit 89d8cd2221

View File

@ -96,6 +96,8 @@ const DirectThirdPartyConnection = (props) => {
try {
if (!isDirectConnection()) setState({ isUpdatingInfo: true });
onSelectFolder && onSelectFolder("");
let account;
[account, capabilities] = await Promise.all([
getSettingsThirdParty(),
@ -186,6 +188,7 @@ const DirectThirdPartyConnection = (props) => {
const onConnect = () => {
clearLocalStorage();
onSelectFolder && onSelectFolder("");
const {
provider_key,