From 717eb762f64d7e5000142f2e6fb6751988748ac7 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 11 Oct 2021 10:30:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20inability=20to=20re-sche?= =?UTF-8?q?dule=20a=20scheduled=20post?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes https://github.com/TryGhost/Team/issues/1112 - when the scheduled post publish menu component was converted to a glimmer component one of the properties in a conditional was missed when changing from `this.x` to `this.args.x` meaning that every time the menu was clicked the published at time was reset as if the save type was being changed --- ghost/admin/app/components/gh-publishmenu-scheduled.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-publishmenu-scheduled.js b/ghost/admin/app/components/gh-publishmenu-scheduled.js index a4c54a19d6..63841ff410 100644 --- a/ghost/admin/app/components/gh-publishmenu-scheduled.js +++ b/ghost/admin/app/components/gh-publishmenu-scheduled.js @@ -33,7 +33,7 @@ export default class GhPublishmenuScheduledComponent extends Component { @action setSaveType(type) { - if (this.saveType !== type) { + if (this.args.saveType !== type) { this.minDate = new Date(); this.args.setSaveType(type);