Skip to content

Commit

Permalink
fix(connector management): fixed connector URL not updating in connec…
Browse files Browse the repository at this point in the history
…tor management table (#1420)
  • Loading branch information
lavanya-bmw authored Jan 13, 2025
1 parent e68b81c commit f361fed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/pages/EdcConnector/ConnectorDetailsOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ interface DeleteConfirmationOverlayProps {
openDialog?: boolean
handleOverlayClose: React.MouseEventHandler
overlayData?: ConnectorDetailsType
// Add an ESLint exception until there is a solution
// eslint-disable-next-line
updateTableConnectorURL: any
}

const ConnectorDetailsOverlay = ({
openDialog = false,
handleOverlayClose,
overlayData,
updateTableConnectorURL,
}: DeleteConfirmationOverlayProps) => {
const { t } = useTranslation()
const [fetchSDDocument] = useFetchSdDocumentMutation()
Expand Down Expand Up @@ -158,6 +162,7 @@ const ConnectorDetailsOverlay = ({
success(t('content.edcconnector.details.urlUpdatedSuccessfully'))
refetch()
setEnableConnectorUrl(true)
updateTableConnectorURL(true)
})
.catch(() => {
setEnableUrlApiErrorMsg(true)
Expand Down
3 changes: 3 additions & 0 deletions src/components/pages/EdcConnector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ const EdcConnector = () => {
setOpenDetailsOverlay(false)
}}
overlayData={overlayData}
updateTableConnectorURL={(data: boolean) => {
data && setRefresh(Date.now())
}}
/>
{deleteConnectorConfirmModalOpen && (
<DeleteConfirmationOverlay
Expand Down

0 comments on commit f361fed

Please sign in to comment.