From 44f09b79716d7a522913c6570e7473edf0fde622 Mon Sep 17 00:00:00 2001 From: lavanya-bmw Date: Wed, 18 Sep 2024 15:24:44 +0530 Subject: [PATCH] fix(connector management): updated package and defaultValue --- package.json | 2 +- .../components/ConnectorInsertForm.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ac39cf16c..46a6c22c2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/pages/EdcConnector/AddConnectorOverlay/components/ConnectorInsertForm.tsx b/src/components/pages/EdcConnector/AddConnectorOverlay/components/ConnectorInsertForm.tsx index d6ac9dc53..d2d9500c4 100644 --- a/src/components/pages/EdcConnector/AddConnectorOverlay/components/ConnectorInsertForm.tsx +++ b/src/components/pages/EdcConnector/AddConnectorOverlay/components/ConnectorInsertForm.tsx @@ -262,8 +262,8 @@ any) => { const { t } = useTranslation() const [selectedValue, setSelectedValue] = useState() const [serviceAccountUsers, setServiceAccountUsers] = useState([]) - const [selectedTechnicalUser, setSelectedTechnicalUser] = useState('') - const [selectedCustomerLink, setSelectedCustomerLink] = useState('') + const [selectedTechnicalUser, setSelectedTechnicalUser] = useState({}) + const [selectedCustomerLink, setSelectedCustomerLink] = useState({}) useEffect(() => { if (fetchServiceAccountUsers) @@ -279,7 +279,7 @@ any) => { i.serviceAccountId === getValues().ConnectorTechnicalUser ) if (selectedConnectorTechnicalUser.length > 0) { - setSelectedTechnicalUser(selectedConnectorTechnicalUser[0]?.name) + setSelectedTechnicalUser(selectedConnectorTechnicalUser[0]) } }, [serviceAccountUsers]) @@ -289,7 +289,7 @@ any) => { item.subscriptionId === getValues().ConnectorSubscriptionId ) if (selectedCustomer.length > 0) { - setSelectedCustomerLink(selectedCustomer[0].name ?? '') + setSelectedCustomerLink(selectedCustomer[0]) } }, [subscriptions])