Skip to content

Commit f2502cd

Browse files
[Dashboards] Fix dashboard title not updating when edited from content editor (#236561)
## Summary This PR fixes a bug where dashboard title in breadcrumbs wouldn't update when edited from content editor flyout on dashboard listing page. https://github.com/user-attachments/assets/9160d7a4-28d3-4066-b722-7201faa05d63 This issue was caused by a stale value in dashboard content management cache. Closes: #217116
1 parent 9d2c316 commit f2502cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform/plugins/shared/dashboard/public/services/dashboard_content_management_service/lib/update_dashboard_meta.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type {
1515
} from '../../../../server/content_management';
1616
import { findDashboardsByIds } from './find_dashboards';
1717
import { contentManagementService, savedObjectsTaggingService } from '../../kibana_services';
18+
import { getDashboardContentManagementCache } from '..';
1819

1920
export interface UpdateDashboardMetaProps {
2021
id: DashboardUpdateIn['id'];
@@ -46,4 +47,6 @@ export const updateDashboardMeta = async ({
4647
data: { title, description },
4748
options: { references },
4849
});
50+
51+
getDashboardContentManagementCache().deleteDashboard(id);
4952
};

0 commit comments

Comments
 (0)