User Profile attribute translation saves correct key to realm overrides (#28053)

* fix

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* refactor

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

---------

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2024-03-20 11:46:51 +00:00 committed by GitHub
parent ceed62213d
commit 22aba84293
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,7 +175,7 @@ export const AttributeGeneralSettings = ({
translationKey={ translationKey={
editMode editMode
? attributeDisplayName ? attributeDisplayName
: "${profile.attributes." + `${newAttributeName}}` : `profile.attributes.${newAttributeName}`
} }
onTranslationsAdded={handleTranslationsAdded} onTranslationsAdded={handleTranslationsAdded}
toggleDialog={handleToggleDialog} toggleDialog={handleToggleDialog}