Skip to content

Commit 2052c6f

Browse files
committed
OU-1264: use correct store path
Pereses integration comes with monitoring-console-plugin.
1 parent 858f769 commit 2052c6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/components/dashboards/perses/useExternalPanelAddition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function useExternalPanelAddition({
1414
}: UseExternalPanelAdditionOptions) {
1515
const dispatch = useDispatch();
1616
const addPersesPanelExternally: any = useSelector(
17-
(s: any) => s.plugins?.mp?.dashboards?.addPersesPanelExternally,
17+
(s: any) => s.plugins?.mcp?.dashboards?.addPersesPanelExternally,
1818
);
1919
const { openAddPanel } = useDashboardActions();
2020
const dashboardStore = useDashboardStore();

web/src/components/ols-tool-ui/helpers/AddToDashboardButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const AddToDashboardButton: React.FC<AddToDashboardButtonProps> = ({
6161
const dispatch = useDispatch();
6262
const { t } = useTranslation(process.env.I18N_NAMESPACE);
6363
const isCustomDashboardOpen: boolean = useSelector(
64-
(s: any) => s.plugins?.mp?.dashboards?.isOpened,
64+
(s: any) => s.plugins?.mcp?.dashboards?.isOpened,
6565
);
6666
const addToPersesDashboard = React.useCallback(() => {
6767
const panelDefinition = createPanelDefinition(query, name, description);

0 commit comments

Comments
 (0)