diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index e591351b875..7abc3993e9d 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -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', () => {