Skip to content

Commit

Permalink
fix(company subscription): fixed duplicate api records on load (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk authored Oct 16, 2024
1 parent 481c5c9 commit e5c2cad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@
- 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
- **OSP Managament**
- fixed hardcoded OSP callback url [#1201](https://github.com/eclipse-tractusx/portal-frontend/pull/1201)
- 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)
- fixed duplicate api records on load [#1206] (https://github.com/eclipse-tractusx/portal-frontend/pull/1206)

## 2.3.0-alpha.1

Expand Down
11 changes: 7 additions & 4 deletions src/components/pages/CompanySubscriptions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function CompanySubscriptions() {
_e: SyntheticEvent<Element, Event>,
value: number
) => {
setRefresh(0)
setCurrentActive(value)
}

Expand Down Expand Up @@ -113,10 +114,12 @@ export default function CompanySubscriptions() {
]

useEffect(() => {
setFetchHookArgs({
statusId: filterStatus,
expr: searchExpr,
})
if (refresh !== 0) {
setFetchHookArgs({
statusId: filterStatus,
expr: searchExpr,
})
}
}, [filterStatus, searchExpr])

const onValidate = (expr: string) => {
Expand Down

0 comments on commit e5c2cad

Please sign in to comment.