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:
parent
11969af782
commit
2444f77e03
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user