Skip to content

Commit

Permalink
Fix wrong permission key for dashboard in analytics overview (#213295)
Browse files Browse the repository at this point in the history
## Summary

This PR fixes a bug introduced in #213198 - wrong capability name was
being used.

Related to the fix from #212171
  • Loading branch information
kowalczyk-krzysztof authored Mar 6, 2025
1 parent e9f852e commit e73fd1f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ export const Overview: FC<Props> = ({ newsFetchResult, solutions, features }) =>
const remainingApps = kibanaApps.map(({ id }) => id).filter((id) => !mainApps.includes(id));
const mainAppsUserHasAccessTo = useMemo(() => {
const applications = [];

if (application.capabilities.dashboards_v2?.show) {
if (application.capabilities.dashboard_v2?.show) {
applications.push('dashboards');
}

Expand Down

0 comments on commit e73fd1f

Please sign in to comment.