Fixed issue with reassigning const for scheduled posts

• Fixed:
- issue with reassigning const for scheduled posts
- schedule posts now work as expected
This commit is contained in:
mgabdev 2020-05-15 16:57:21 -04:00
parent 11969af782
commit 2444f77e03
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ export function submitCompose(group, replyToId = null, router, isStandalone) {
: `/api/v1/statuses/${id}`;
const method = id === null ? 'post' : 'put';
const scheduled_at = getState().getIn(['compose', 'scheduled_at'], null);
let scheduled_at = getState().getIn(['compose', 'scheduled_at'], null);
if (scheduled_at !== null) scheduled_at = moment.utc(scheduled_at).toDate();
if (isMobile(window.innerWidth) && router && isStandalone) {