Fix bug 64800 - Settings: Backup. "Something went wrong" when connecting storage to Third-Party resource.
This commit is contained in:
parent
478d4079ba
commit
76a9bcc605
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user