|
|
@@ -78,24 +78,24 @@ export default class AdminAppContainer extends Container {
|
|
|
const { appSettingsParams } = response.data;
|
|
|
|
|
|
this.setState({
|
|
|
- title: appSettingsParams.title,
|
|
|
- confidential: appSettingsParams.confidential,
|
|
|
- globalLang: appSettingsParams.globalLang,
|
|
|
- fileUpload: appSettingsParams.fileUpload,
|
|
|
- siteUrl: appSettingsParams.siteUrl,
|
|
|
- envSiteUrl: appSettingsParams.envSiteUrl,
|
|
|
+ title: appSettingsParams.title || '',
|
|
|
+ confidential: appSettingsParams.confidential || '',
|
|
|
+ globalLang: appSettingsParams.globalLang || '',
|
|
|
+ fileUpload: appSettingsParams.fileUpload || '',
|
|
|
+ siteUrl: appSettingsParams.siteUrl || '',
|
|
|
+ envSiteUrl: appSettingsParams.envSiteUrl || '',
|
|
|
isSetSiteUrl: !!appSettingsParams.siteUrl,
|
|
|
- fromAddress: appSettingsParams.fromAddress,
|
|
|
- smtpHost: appSettingsParams.smtpHost,
|
|
|
- smtpPort: appSettingsParams.smtpPort,
|
|
|
- smtpUser: appSettingsParams.smtpUser,
|
|
|
- smtpPassword: appSettingsParams.smtpPassword,
|
|
|
- region: appSettingsParams.region,
|
|
|
- customEndpoint: appSettingsParams.customEndpoint,
|
|
|
- bucket: appSettingsParams.bucket,
|
|
|
- accessKeyId: appSettingsParams.accessKeyId,
|
|
|
- secretKey: appSettingsParams.secretKey,
|
|
|
- isEnabledPlugins: appSettingsParams.isEnabledPlugins,
|
|
|
+ fromAddress: appSettingsParams.fromAddress || '',
|
|
|
+ smtpHost: appSettingsParams.smtpHost || '',
|
|
|
+ smtpPort: appSettingsParams.smtpPort || '',
|
|
|
+ smtpUser: appSettingsParams.smtpUser || '',
|
|
|
+ smtpPassword: appSettingsParams.smtpPassword || '',
|
|
|
+ region: appSettingsParams.region || '',
|
|
|
+ customEndpoint: appSettingsParams.customEndpoint || '',
|
|
|
+ bucket: appSettingsParams.bucket || '',
|
|
|
+ accessKeyId: appSettingsParams.accessKeyId || '',
|
|
|
+ secretKey: appSettingsParams.secretKey || '',
|
|
|
+ isEnabledPlugins: appSettingsParams.isEnabledPlugins || false,
|
|
|
});
|
|
|
|
|
|
}
|