fix export ics bug user
This commit is contained in:
1 parent
f7e041658d
commit
59a8cfe752
1 file changed
+1
-2
@@ -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