Skip to content

Commit 5155c8a

Browse files
committed
feat(templating): set default min span to 4, fixes grafana#5662
1 parent 9f14b20 commit 5155c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/app/features/dashboard/dynamic_dashboard_srv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class DynamicDashboardSrv {
177177

178178
_.each(selected, (option, index) => {
179179
var copy = this.getPanelClone(panel, row, index);
180-
copy.span = Math.max(12 / selected.length, panel.minSpan);
180+
copy.span = Math.max(12 / selected.length, panel.minSpan || 4);
181181
copy.scopedVars = copy.scopedVars || {};
182182
copy.scopedVars[variable.name] = option;
183183
});

0 commit comments

Comments
 (0)