fix(ui): team uuid to sent while creating user (#13768)

This commit is contained in:
Chirag Madlani 2023-10-31 20:54:44 +05:30 committed by GitHub
parent 7dd3874224
commit 761889175e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
@ -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 ?? ''),
},