fix export ics bug user
This commit is contained in:
@@ -7,7 +7,6 @@ import {AuthContext} from "../../../../contexts/auth/AuthContext.ts";
|
||||
|
||||
function Calendar() {
|
||||
|
||||
const { events } = useContext(EventContext);
|
||||
const { user } = useContext(AuthContext);
|
||||
|
||||
|
||||
@@ -134,7 +133,7 @@ function Calendar() {
|
||||
variant={"primary"}
|
||||
onClick={() => {
|
||||
window.location.href =
|
||||
`http://localhost/api/export/ics`;
|
||||
`http://localhost/api/export/ics/${user.id}`;
|
||||
}}
|
||||
>
|
||||
Exporter mon agenda
|
||||
|
||||
Reference in New Issue
Block a user