Fixed site title syncing from AdminX to Ember (#18349)

refs https://github.com/TryGhost/Product/issues/3832
This commit is contained in:
Jono M 2023-09-26 10:51:43 +01:00 committed by GitHub
parent ac7abb9edd
commit 84ae5f58d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,6 +318,11 @@ export default class AdminXSettings extends Component {
} else {
this.store.pushPayload(type, response);
}
if (dataType === 'SettingsResponseType') {
// Blog title is based on settings, but the one stored in config is used instead in various places
this.config.blogTitle = response.settings.find(setting => setting.key === 'title').value;
}
};
onInvalidate = (dataType) => {