Skip to content

Commit

Permalink
Fix: πŸ› Add Reset button for scheduled stories (#13471)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuragVasanwala authored Oct 3, 2023
1 parent 2ae22ff commit 7953661
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function PublishTime() {

// Floating date means an unset date so that the story publish date will match the time it will get published.
const floatingDate =
['draft', 'pending', 'auto-draft'].includes(status) &&
['draft', 'pending', 'auto-draft', 'future'].includes(status) &&
(date === modified || date === null);

const displayLabel = !floatingDate
Expand Down Expand Up @@ -151,7 +151,7 @@ function PublishTime() {
forwardedRef={dateTimeNode}
onClose={() => setShowDatePicker(false)}
canReset={
['draft', 'pending', 'auto-draft'].includes(status) &&
['draft', 'pending', 'auto-draft', 'future'].includes(status) &&
!floatingDate
}
/>
Expand Down

0 comments on commit 7953661

Please sign in to comment.