fix: update not getting the tag in identity modal

This commit is contained in:
=
2024-10-02 19:21:44 +05:30
parent ec4f175f73
commit 40c589eced

View File

@@ -89,6 +89,7 @@ export const IdentityModal = ({ popUp, handlePopUpToggle }: Props) => {
identityId: string;
name: string;
role: string;
metadata?: { key: string; value: string }[];
customRole: {
name: string;
slug: string;
@@ -100,7 +101,8 @@ export const IdentityModal = ({ popUp, handlePopUpToggle }: Props) => {
if (identity) {
reset({
name: identity.name,
role: identity?.customRole?.slug ?? identity.role
role: identity?.customRole?.slug ?? identity.role,
metadata: identity.metadata
});
} else {
reset({