Skip to content

Commit

Permalink
fix(tech user): fixed duplicate api records on load (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk authored Oct 16, 2024
1 parent e5c2cad commit 0518eaa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- **Connector Management**
- fixed customer link selection and fixed resetting values [#1119](https://github.com/eclipse-tractusx/portal-frontend/pull/1119)
- **Technical User Management**
- fixed error message scenario post technical user deletion action
- fixed error message scenario post technical user deletion action [#1164](https://github.com/eclipse-tractusx/portal-frontend/pull/1164)
- **Company Subscriptions**
- fixed incorrect data display in service company subscriptions [#1191](https://github.com/eclipse-tractusx/portal-frontend/pull/1191)
- fixed error message scenario post technical user deletion action [#1164](https://github.com/eclipse-tractusx/portal-frontend/pull/1164)
Expand Down
1 change: 0 additions & 1 deletion src/components/overlays/AddTechnicalUser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const AddTechnicalUser = () => {
authenticationType: ServiceAccountType.SECRET,
roleIds: [formValues.TechnicalUserService],
}).unwrap()
console.log(result)
setResponse(result)
setLoading(false)
setError(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ export const TechnicalUserTable = () => {
}

useEffect(() => {
setRefresh(Date.now())
if (update !== 0) {
setRefresh(Date.now())
}
}, [update])

useEffect(() => {
setFetchHookArgs({
statusFilter: group,
expr,
})
if (refresh !== 0) {
setFetchHookArgs({
statusFilter: group,
expr,
})
}
}, [group, expr])

const filterButtons = [
Expand Down

0 comments on commit 0518eaa

Please sign in to comment.