Hide calendar module sensitive data

Working towards #259
This commit is contained in:
ajnart
2022-07-22 18:07:36 +02:00
parent 81a7789f9c
commit 5ccdf735ae
2 changed files with 17 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ export default function CalendarComponent(props: any) {
if (!service || !service.apiKey) {
return Promise.resolve({ data: [] });
}
return axios.post(`/api/modules/calendar?type=${type}`, { ...service });
return axios.post(`/api/modules/calendar?type=${type}`, { id: service.id });
}
useEffect(() => {