Skip to content

Commit

Permalink
fix(app marketplace): fix updating favorites (eclipse-tractusx#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw authored Nov 15, 2024
1 parent 4ddb929 commit 9d17f0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Bugfixes

- **App Marketplace**
- fixed updating of favorites in app marketplace [#1345](https://github.com/eclipse-tractusx/portal-frontend/pull/1345)

## 2.3.0-RC4

### Change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default function AppListSection() {
const dispatch = useDispatch<AppDispatch>()
const navigate = useNavigate()
const { data, error, isError, refetch } = useFetchActiveAppsQuery()
const { data: favoriteItems } = useFetchFavoriteAppsQuery()
const { data: favoriteItems, refetch: refetchFavoriteApps } =
useFetchFavoriteAppsQuery()
const control = useSelector(appsControlSelector)
const [list, setList] = useState<AppMarketplaceApp[]>([])
const [favList, setFavlist] = useState<string[]>([])
Expand Down Expand Up @@ -94,6 +95,7 @@ export default function AppListSection() {
const d = cloneDeep(data)
arrangeDataList(d, favoriteItems)
}
refetchFavoriteApps()
}, [data, favoriteItems])

const renderProgress = () => (
Expand Down

0 comments on commit 9d17f0e

Please sign in to comment.