From 4106e9b2ae0cb37f5dc5af8abe0c32d142fc9e3a Mon Sep 17 00:00:00 2001 From: Arnaud AMBROSELLI Date: Wed, 7 Feb 2024 13:21:43 +0100 Subject: [PATCH] fix: nouvelle action depuis le nouveau CR est FAITE --- .../scenes/report/components/ActionsOrConsultationsReport.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dashboard/src/scenes/report/components/ActionsOrConsultationsReport.js b/dashboard/src/scenes/report/components/ActionsOrConsultationsReport.js index 5c31736c4..abf58ed83 100644 --- a/dashboard/src/scenes/report/components/ActionsOrConsultationsReport.js +++ b/dashboard/src/scenes/report/components/ActionsOrConsultationsReport.js @@ -9,6 +9,7 @@ import TabsNav from '../../../components/tailwind/TabsNav'; import { useLocalStorage } from '../../../services/useLocalStorage'; import { useRecoilValue } from 'recoil'; import { userState } from '../../../recoil/auth'; +import { dayjsInstance } from '../../../services/date'; export const ActionsOrConsultationsReport = ({ actions, consultations, period }) => { const [activeTab, setActiveTab] = useLocalStorage('reports-actions-consultation-toggle', 'Actions'); @@ -49,6 +50,7 @@ export const ActionsOrConsultationsReport = ({ actions, consultations, period }) const searchParams = new URLSearchParams(history.location.search); searchParams.set(activeTab.includes('Actions') ? 'newAction' : 'newConsultation', true); searchParams.set('dueAt', period.startDate); + searchParams.set('completedAt', dayjsInstance(period.startDate).set('hour', 12)); history.push(`?${searchParams.toString()}`); }}> +