Skip to content

Commit

Permalink
fix(connector management): updated package and defaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw committed Sep 18, 2024
1 parent 246a8af commit 44f09b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
]
},
"dependencies": {
"@catena-x/portal-shared-components": "^3.5.2",
"@catena-x/portal-shared-components": "^3.6.1",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@hookform/error-message": "^2.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ any) => {
const { t } = useTranslation()
const [selectedValue, setSelectedValue] = useState<string>()
const [serviceAccountUsers, setServiceAccountUsers] = useState([])
const [selectedTechnicalUser, setSelectedTechnicalUser] = useState('')
const [selectedCustomerLink, setSelectedCustomerLink] = useState('')
const [selectedTechnicalUser, setSelectedTechnicalUser] = useState({})
const [selectedCustomerLink, setSelectedCustomerLink] = useState({})

useEffect(() => {
if (fetchServiceAccountUsers)
Expand All @@ -279,7 +279,7 @@ any) => {
i.serviceAccountId === getValues().ConnectorTechnicalUser
)
if (selectedConnectorTechnicalUser.length > 0) {
setSelectedTechnicalUser(selectedConnectorTechnicalUser[0]?.name)
setSelectedTechnicalUser(selectedConnectorTechnicalUser[0])
}
}, [serviceAccountUsers])

Expand All @@ -289,7 +289,7 @@ any) => {
item.subscriptionId === getValues().ConnectorSubscriptionId
)
if (selectedCustomer.length > 0) {
setSelectedCustomerLink(selectedCustomer[0].name ?? '')
setSelectedCustomerLink(selectedCustomer[0])
}
}, [subscriptions])

Expand Down

0 comments on commit 44f09b7

Please sign in to comment.