mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
style: use for loops over _.each in typescript
This commit is contained in:
parent
c5a76fba87
commit
9ed1d12cc0
@ -189,16 +189,16 @@ export class KeybindingSrv {
|
||||
|
||||
// collapse all rows
|
||||
this.bind('d C', () => {
|
||||
_.each(dashboard.rows, function(row) {
|
||||
for (let row of dashboard.rows) {
|
||||
row.collapse = true;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// expand all rows
|
||||
this.bind('d E', () => {
|
||||
_.each(dashboard.rows, function(row) {
|
||||
for (let row of dashboard.rows) {
|
||||
row.collapse = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this.bind('d r', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user