MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / onUpdateClick

Function onUpdateClick

apps/web/ui/MembersModal/index.tsx:58–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 function onUpdateClick() {
59 if (channel && permissions?.accountId) {
60 api
61 .updateChannelMembers({
62 accountId: permissions.accountId,
63 channelId: channel.id,
64 usersId: users.map((u) => u.id),
65 })
66 .then(() => {
67 close();
68 })
69 .catch((e) => {
70 Toast.info('Something went wrong');
71 });
72 }
73 }
74
75 return (
76 <Modal open={open} close={close} size="md">

Callers 1

MembersModalFunction · 0.85

Calls 3

closeFunction · 0.85
mapMethod · 0.80
infoMethod · 0.65

Tested by

no test coverage detected