Skip to content

Commit

Permalink
fix(dashboard): correct chart source url for jfr-metrics charts
Browse files Browse the repository at this point in the history
Signed-off-by: Thuan Vo <[email protected]>
  • Loading branch information
tthvo authored and andrewazores committed Jul 10, 2024
1 parent 2375375 commit fc49e13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/Dashboard/Charts/jfr/JFRMetricsChartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const JFRMetricsChartCard: DashboardCardFC<JFRMetricsChartCardProps> = (p
if (!dashboardUrl) {
return;
}
const u = new URL('/d-solo/main', dashboardUrl);
const u = new URL('d-solo/main', new URL(dashboardUrl, window.location.href));
u.searchParams.append('theme', theme);
u.searchParams.append('panelId', String(kindToId(props.chartKind)));
u.searchParams.append('to', 'now');
Expand Down
2 changes: 1 addition & 1 deletion src/app/Dashboard/cryostat-dashboard-templates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const JFRMonitoringLayout: LayoutTemplate = {
span: 3,
props: {
theme: 'light',
chartKind: 'Recording start time',
chartKind: 'Recording Start Time',
duration: 120,
period: 10,
},
Expand Down

0 comments on commit fc49e13

Please sign in to comment.