add name as id because global profiles have none (#38173)

fixes: #38061

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2025-03-17 20:17:56 +01:00 committed by GitHub
parent 46bbe073fb
commit 0e549047d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ export const AddClientProfileModal = (props: AddClientProfileModalProps) => {
(allProfiles) => {
const globalProfiles = allProfiles.globalProfiles?.map(
(globalProfiles) => ({
id: globalProfiles.name,
...globalProfiles,
global: true,
}),