Skip to content

Commit

Permalink
Merge pull request #734 from eclipse-tractusx/main
Browse files Browse the repository at this point in the history
build(2.0.0-rc3): merge main into dev
  • Loading branch information
evegufy authored Apr 24, 2024
2 parents 74e7a59 + 9386062 commit 20d9fc6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 2.0.0-RC3

### Bugfix

- Technical Setup
- fixed white page issue on connector registration with "Existing Technical User" selection

## 2.0.0-RC2

### Change
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@catena-x/portal-frontend",
"version": "v2.0.0-RC2",
"version": "v2.0.0-RC3",
"description": "Catena-X Portal Frontend",
"author": "Catena-X Contributors",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import HelpOutlineIcon from '@mui/icons-material/HelpOutline'
import Patterns from 'types/Patterns'
import { ConnectType } from 'features/connector/connectorApiSlice'
import { Dropzone } from '../../../../shared/basic/Dropzone'
import { useState } from 'react'
import { useEffect, useState } from 'react'
import './EdcComponentStyles.scss'

const ConnectorFormInput = ({
Expand Down Expand Up @@ -254,6 +254,16 @@ const ConnectorInsertForm = ({
any) => {
const { t } = useTranslation()
const [selectedValue, setSelectedValue] = useState<string>()
const [serviceAccountUsers, setServiceAccountUsers] = useState([])

useEffect(() => {
if (fetchServiceAccountUsers?.content)
setServiceAccountUsers(
fetchServiceAccountUsers.content?.filter(
(item: { name: string }) => item.name
)
)
}, [fetchServiceAccountUsers])

const handleTechnicalUserSubmit = () => {
if (
Expand Down Expand Up @@ -364,9 +374,9 @@ any) => {
helperText: t(
'content.edcconnector.modal.insertform.technicalUser.error'
),
items: fetchServiceAccountUsers?.content,
items: serviceAccountUsers,
defaultSelectValue: {},
keyTitle: 'clientId',
keyTitle: 'name',
}}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/features/admin/serviceApiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ export const apiSlice = createApi({
method: 'POST',
}),
}),
fetchServiceAccountUsers: builder.query<ServiceAccountRole[], void>({
fetchServiceAccountUsers: builder.query<ServiceAccountListEntry[], void>({
query: () =>
'/api/administration/serviceaccount/owncompany/serviceaccounts?page=0&size=10&filterForInactive=false',
`/api/administration/serviceaccount/owncompany/serviceaccounts?page=0&size=${PAGE_SIZE}&filterForInactive=false`,
}),
}),
})
Expand Down

0 comments on commit 20d9fc6

Please sign in to comment.