fix export ics bug user

This commit is contained in:
ORDONNEAU Antoine committed 2026-03-03 12:07:22 +01:00
1 parent f7e041658d
commit 59a8cfe752
1 file changed
+1 -2
@@ -7,7 +7,6 @@ import {AuthContext} from "../../../../contexts/auth/AuthContext.ts";
function Calendar() { function Calendar() {
const { events } = useContext(EventContext);
const { user } = useContext(AuthContext); const { user } = useContext(AuthContext);
@@ -134,7 +133,7 @@ function Calendar() {
variant={"primary"} variant={"primary"}
onClick={() => { onClick={() => {
window.location.href = window.location.href =
`http://localhost/api/export/ics`; `http://localhost/api/export/ics/${user.id}`;
}} }}
> >
Exporter mon agenda Exporter mon agenda