Dashboard: Fixes open panel edit button (#103169)

* Dashboard: Fixes open panel edit button

* fix imports
This commit is contained in:
Torkel Ödegaard
2025-04-01 17:11:39 +02:00
committed by GitHub
parent d04e14cf9e
commit ae73dee220
@@ -17,7 +17,6 @@ import { BulkActionElement } from '../scene/types/BulkActionElement';
import { isDashboardLayoutItem } from '../scene/types/DashboardLayoutItem';
import { EditableDashboardElement, EditableDashboardElementInfo } from '../scene/types/EditableDashboardElement';
import { dashboardSceneGraph } from '../utils/dashboardSceneGraph';
import { getEditPanelUrl } from '../utils/urlBuilders';
import { getDashboardSceneFor, getPanelIdForVizPanel } from '../utils/utils';
import { MultiSelectedVizPanelsEditableElement } from './MultiSelectedVizPanelsEditableElement';
@@ -114,7 +113,7 @@ const OpenPanelEditViz = ({ panel }: OpenPanelEditVizProps) => {
<Stack alignItems="center" width="100%">
<Button
onClick={() => {
locationService.push(getEditPanelUrl(getPanelIdForVizPanel(panel)));
locationService.partial({ editPanel: getPanelIdForVizPanel(panel) });
}}
icon="sliders-v-alt"
fullWidth