Skip to content

Commit

Permalink
fix: nouvelle action depuis le nouveau CR est FAITE
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Feb 7, 2024
1 parent 7cc6399 commit 4106e9b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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()}`);
}}>
Expand Down

0 comments on commit 4106e9b

Please sign in to comment.