|
|
@@ -13,23 +13,23 @@ import LdapSecuritySettingContents from './LdapSecuritySettingContents';
|
|
|
let retrieveErrors = null;
|
|
|
function LdapSecuritySetting(props) {
|
|
|
const { adminLdapSecurityContainer } = props;
|
|
|
- if (adminLdapSecurityContainer.state.serverUrl === adminLdapSecurityContainer.dummyServerUrl) {
|
|
|
- throw (async() => {
|
|
|
- try {
|
|
|
- await adminLdapSecurityContainer.retrieveSecurityData();
|
|
|
- }
|
|
|
- catch (err) {
|
|
|
- const errs = toArrayIfNot(err);
|
|
|
- toastError(errs);
|
|
|
- retrieveErrors = errs;
|
|
|
- adminLdapSecurityContainer.setState({ serverUrl: adminLdapSecurityContainer.dummyServerUrlForError });
|
|
|
- }
|
|
|
- })();
|
|
|
- }
|
|
|
-
|
|
|
- if (adminLdapSecurityContainer.state.serverUrl === adminLdapSecurityContainer.dummyServerUrlForError) {
|
|
|
- throw new Error(`${retrieveErrors.length} errors occured`);
|
|
|
- }
|
|
|
+ // if (adminLdapSecurityContainer.state.serverUrl === adminLdapSecurityContainer.dummyServerUrl) {
|
|
|
+ // throw (async() => {
|
|
|
+ // try {
|
|
|
+ // await adminLdapSecurityContainer.retrieveSecurityData();
|
|
|
+ // }
|
|
|
+ // catch (err) {
|
|
|
+ // const errs = toArrayIfNot(err);
|
|
|
+ // toastError(errs);
|
|
|
+ // retrieveErrors = errs;
|
|
|
+ // adminLdapSecurityContainer.setState({ serverUrl: adminLdapSecurityContainer.dummyServerUrlForError });
|
|
|
+ // }
|
|
|
+ // })();
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (adminLdapSecurityContainer.state.serverUrl === adminLdapSecurityContainer.dummyServerUrlForError) {
|
|
|
+ // throw new Error(`${retrieveErrors.length} errors occured`);
|
|
|
+ // }
|
|
|
|
|
|
return <LdapSecuritySettingContents />;
|
|
|
}
|