|
|
@@ -108,17 +108,11 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
currentCustomizeCss: customizeParams.customizeCss,
|
|
|
currentCustomizeScript: customizeParams.customizeScript,
|
|
|
brandLogoAttachmentId: customizeParams.brandLogoAttachmentId,
|
|
|
+ isDefaultLogo: customizeParams.isDefaultLogo,
|
|
|
uploadedLogoSrc: customizeParams.uploadedLogoSrc,
|
|
|
});
|
|
|
// search style name from object for display
|
|
|
this.setState({ currentHighlightJsStyleName: this.state.highlightJsCssSelectorOptions[customizeParams.styleName].name });
|
|
|
-
|
|
|
- if (!('isDefaultLogo' in customizeParams)) {
|
|
|
- this.setState({ isDefaultLogo: true });
|
|
|
- }
|
|
|
- else {
|
|
|
- this.setState({ isDefaultLogo: customizeParams.isDefaultLogo });
|
|
|
- }
|
|
|
}
|
|
|
catch (err) {
|
|
|
this.setState({ retrieveError: err });
|
|
|
@@ -494,7 +488,7 @@ export default class AdminCustomizeContainer extends Container {
|
|
|
async updateCustomizeLogo() {
|
|
|
try {
|
|
|
const response = await apiv3Put('/customize-setting/customize-logo', {
|
|
|
- isDefaultLogo: this.state.uploadedLogoSrc == null ? true : this.state.isDefaultLogo,
|
|
|
+ isDefaultLogo: this.state.isDefaultLogo,
|
|
|
brandLogoAttachmentId: this.state.brandLogoAttachmentId,
|
|
|
uploadedLogoSrc: this.state.uploadedLogoSrc,
|
|
|
});
|