From 2444f77e0357dc180b7c11a63737a8571fef0768 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 15 May 2020 16:57:21 -0400 Subject: [PATCH] Fixed issue with reassigning const for scheduled posts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fixed: - issue with reassigning const for scheduled posts - schedule posts now work as expected --- app/javascript/gabsocial/actions/compose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/gabsocial/actions/compose.js b/app/javascript/gabsocial/actions/compose.js index 95cfdcd3..251b0d92 100644 --- a/app/javascript/gabsocial/actions/compose.js +++ b/app/javascript/gabsocial/actions/compose.js @@ -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) {