Skip to content

Commit

Permalink
feat(search): Filter cozy-data-proxy app from Home's app list
Browse files Browse the repository at this point in the history
We want to hide the `cozy-data-proxy` from the user as this is a
technical cozy-app that is not meant to be opened

This filter should be temporary as we expect to hide the cozy-app at a
higher level on cozy-client collections
  • Loading branch information
Ldoppea committed Oct 16, 2024
1 parent 49ad164 commit 4f34db2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Applications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const getApplicationsList = memoize(data => {
!flag(`home_hidden_apps.${app.slug.toLowerCase()}`) // can be set in the context with `home_hidden_apps: - drive - banks`for example
)
const dedupapps = uniqBy(apps, 'slug')
const array = dedupapps.map(app => <AppTile key={app.id} app={app} />)
const array = dedupapps
.filter(app => app.name !== 'cozy-data-proxy')
.map(app => <AppTile key={app.id} app={app} />)

array.push(
<AppHighlightAlertWrapper key="AppHighlightAlertWrapper" apps={apps} />
Expand Down

0 comments on commit 4f34db2

Please sign in to comment.