ui/fix: correct url handling for stacked graphs (#13460)

Signed-off-by: Yury Moladau <yurymolodov@gmail.com>
This commit is contained in:
Yury Molodov 2024-01-26 09:25:23 +01:00 committed by GitHub
parent 0fe34f8f8d
commit a598ddfbc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 });
}