MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / onError

Function onError

apps/start/src/modals/edit-member.tsx:31–34  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

29 const mutation = useMutation(
30 trpc.organization.updateMemberAccess.mutationOptions({
31 onError(error) {
32 handleError(error);
33 setAccess(member.access?.map((a) => a.projectId) ?? []);
34 },
35 onSuccess() {
36 toast.success('Access updated');
37 // Refresh members list so access column reflects changes

Callers

nothing calls this directly

Calls 2

handleErrorFunction · 0.90
mapMethod · 0.45

Tested by

no test coverage detected