Skip to content

Commit

Permalink
fix(ui): team uuid to sent while creating user (#13768)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7618891)
  • Loading branch information
chirag-madlani committed Nov 20, 2023
1 parent c6e861b commit c2b3436
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
ROUTES,
VALIDATION_MESSAGES,
} from '../../constants/constants';
import { EntityReference } from '../../generated/entity/type';
import { createUser } from '../../rest/userAPI';
import { getNameFromUserData } from '../../utils/AuthProvider.util';
import brandImageClassBase from '../../utils/BrandImage/BrandImageClassBase';
Expand Down Expand Up @@ -53,6 +54,7 @@ const SignUp = () => {
try {
const res = await createUser({
...data,
teams: (data.teams as EntityReference[])?.map((t) => t.id),
profile: {
images: getImages(appState.newUser.picture ?? ''),
},
Expand Down

0 comments on commit c2b3436

Please sign in to comment.