mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
ae9460b863
commit
492c1ebc0e
@ -40,7 +40,7 @@ export class LayoutSwitcher extends SceneObjectBase<LayoutSwitcherState> impleme
|
||||
|
||||
updateFromUrl(values: SceneObjectUrlValues) {
|
||||
const newBreakdownLayout = values.breakdownLayout;
|
||||
if (newBreakdownLayout === 'string' && isBreakdownLayoutType(newBreakdownLayout)) {
|
||||
if (typeof newBreakdownLayout === 'string' && isBreakdownLayoutType(newBreakdownLayout)) {
|
||||
if (this.state.activeBreakdownLayout !== newBreakdownLayout) {
|
||||
this.setState({ activeBreakdownLayout: newBreakdownLayout });
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ export function getDatasourceForNewTrail(): string | undefined {
|
||||
const prevTrail = getTrailStore().recent[0];
|
||||
if (prevTrail) {
|
||||
const prevDataSource = sceneGraph.interpolate(prevTrail.resolve(), VAR_DATASOURCE_EXPR);
|
||||
if (typeof prevDataSource === 'string' && prevDataSource.length > 0) {
|
||||
if (prevDataSource.length > 0) {
|
||||
return prevDataSource;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user