mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
feat(templating): set default min span to 4, fixes #5662
This commit is contained in:
parent
9f14b209bd
commit
5155c8a753
@ -177,7 +177,7 @@ export class DynamicDashboardSrv {
|
||||
|
||||
_.each(selected, (option, index) => {
|
||||
var copy = this.getPanelClone(panel, row, index);
|
||||
copy.span = Math.max(12 / selected.length, panel.minSpan);
|
||||
copy.span = Math.max(12 / selected.length, panel.minSpan || 4);
|
||||
copy.scopedVars = copy.scopedVars || {};
|
||||
copy.scopedVars[variable.name] = option;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user