Use URL isFirstPanel to enable panel editor onboarding (#67546)

This commit is contained in:
Ivan Ortega Alba
2023-04-28 19:09:44 +02:00
committed by GitHub
parent 7bceab4ad4
commit cdf8555ace
2 changed files with 9 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ export const DashboardEmpty = ({ dashboard, canCreate }: Props) => {
onClick={() => {
const id = onCreateNewPanel(dashboard, initialDatasource);
reportInteraction('dashboards_emptydashboard_clicked', { item: 'add_visualization' });
locationService.partial({ editPanel: id });
locationService.partial({ editPanel: id, firstPanel: true });
dispatch(setInitialDatasource(undefined));
}}
disabled={!canCreate}