Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: project members are not deletable

Blue Mouse5556d94e0c82
diff --git a/web/app/routes/projects.settings.$id.tsx b/web/app/routes/projects.settings.$id.tsx
index 1079b9b61..3e8af894c 100644
--- a/web/app/routes/projects.settings.$id.tsx
+++ b/web/app/routes/projects.settings.$id.tsx
@@ -492,16 +492,16 @@ export async function action({ request, params }: ActionFunctionArgs) {
}
case 'delete-share-user': {
- const userId = formData.get('userId')?.toString()
+ const shareId = formData.get('shareId')?.toString()
- if (!userId) {
+ if (!shareId) {
return data<ProjectSettingsActionData>(
- { intent, error: 'User ID is required' },
+ { intent, error: 'Share ID is required' },
{ status: 400 },
)
}
- const result = await serverFetch(request, `project/${id}/${userId}`, {
+ const result = await serverFetch(request, `project/${id}/${shareId}`, {
method: 'DELETE',
})