From c2a8bcf5b42a4c25b6dece4cef44ba7261e71fa6 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 20 Mar 2024 23:25:42 +0100 Subject: [PATCH] CM-728: remove iso parse --- src/reducer.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/reducer.js b/src/reducer.js index a702960..8be83b1 100644 --- a/src/reducer.js +++ b/src/reducer.js @@ -115,12 +115,7 @@ function reducer( task: parseData(action.payload.data.task)?.map((task) => ({ ...task, id: decodeId(task.id), - businessData: parseTaskData(JSON.parse(task.businessData, (key, value) => { - if (['date_valid_to', 'date_valid_from'].includes(key)) { - return `${value} 00:00:00`; - } - return value; - })), + businessData: parseTaskData(JSON.parse(task.businessData)), }))?.[0], errorTask: null, };