Skip to content

Commit

Permalink
ui/fix: correct url handling for stacked graphs (#13460)
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Moladau <yurymolodov@gmail.com>
  • Loading branch information
Loori-R committed Jan 26, 2024
1 parent 0fe34f8 commit a598ddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/ui/react-app/src/pages/graph/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ class Panel extends Component<PanelProps, PanelState> {
}

const isHeatmap = isHeatmapData(query.data);
if (!isHeatmap) {
const isHeatmapDisplayMode = this.props.options.displayMode === GraphDisplayMode.Heatmap;
if (!isHeatmap && isHeatmapDisplayMode) {
this.setOptions({ displayMode: GraphDisplayMode.Lines });
}

Expand Down

0 comments on commit a598ddf

Please sign in to comment.