Fix bug 64800 - Settings: Backup. "Something went wrong" when connecting storage to Third-Party resource.

This commit is contained in:
Tatiana Lopaeva 2023-10-23 15:18:34 +03:00
parent 478d4079ba
commit 76a9bcc605

View File

@ -72,12 +72,6 @@ const DirectThirdPartyConnection = (props) => {
}
};
useEffect(() => {
selectedThirdPartyAccount === null &&
!isInitialLoading &&
updateAccountsInfo();
}, [selectedThirdPartyAccount === null]);
const [state, setState] = useReducer(
(state, newState) => ({ ...state, ...newState }),
initialState
@ -225,7 +219,7 @@ const DirectThirdPartyConnection = (props) => {
provider_id
);
setSelectedThirdPartyAccount(null);
updateAccountsInfo();
} catch (e) {
setState({ isLoading: false, isUpdatingInfo: false });
toastr.error(e);