Skip to content

Commit 1e48f9e

Browse files
authored
Add quotes to payload when adding user to organization
Fixes #43812 (cherry picked from commit 0b2d673) Signed-off-by: Stan Silvert <[email protected]>
1 parent 3442d9b commit 1e48f9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/apps/admin-ui/src/organizations/Members.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const Members = () => {
146146
selectedRows.map((user) =>
147147
adminClient.organizations.addMember({
148148
orgId,
149-
userId: user.id!,
149+
userId: `"${user.id!}"`,
150150
}),
151151
),
152152
);

js/apps/admin-ui/src/user/Organizations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const Organizations = ({ user }: OrganizationProps) => {
191191
return shouldJoin
192192
? adminClient.organizations.addMember({
193193
orgId: org.id!,
194-
userId: id!,
194+
userId: `"${user.id!}"`,
195195
})
196196
: adminClient.organizations.inviteExistingUser(
197197
{ orgId: org.id! },

0 commit comments

Comments
 (0)