Skip to content

Commit 4ec67d8

Browse files
pasha-codefreshalexmt
authored andcommitted
fix: applications page is crashing if nothing marked as favorites (#8356)
fix: applications page is crashing if nothing marked as favorites (#8356) Signed-off-by: pashavictorovich <pavel@codefresh.io>
1 parent 3d3f81d commit 4ec67d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/app/applications/components/applications-list/applications-filter.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function getFilterResults(applications: Application[], pref: AppsListPref
3131
sync: pref.syncFilter.length === 0 || pref.syncFilter.includes(app.status.sync.status),
3232
health: pref.healthFilter.length === 0 || pref.healthFilter.includes(app.status.health.status),
3333
namespaces: pref.namespacesFilter.length === 0 || pref.namespacesFilter.some(ns => app.spec.destination.namespace && minimatch(app.spec.destination.namespace, ns)),
34-
favourite: !pref.showFavorites || pref.favoritesAppList.includes(app.metadata.name),
34+
favourite: !pref.showFavorites || (pref.favoritesAppList && pref.favoritesAppList.includes(app.metadata.name)),
3535
clusters:
3636
pref.clustersFilter.length === 0 ||
3737
pref.clustersFilter.some(filterString => {

0 commit comments

Comments
 (0)