mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-29 17:49:14 +00:00
fix(ui): team uuid to sent while creating user (#13768)
This commit is contained in:
parent
7dd3874224
commit
761889175e
@ -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 ?? ''),
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user