From c12b3dcd0297a385d55a8077cd2f8bdd195c9cb8 Mon Sep 17 00:00:00 2001 From: Alex Leitner Date: Fri, 13 Dec 2024 16:20:10 -0500 Subject: [PATCH] GUACAMOLE-2005: FIlter out batches that ended up not having any keystroke events. --- .../src/app/player/services/keyEventDisplayService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/player/services/keyEventDisplayService.js b/guacamole/src/main/frontend/src/app/player/services/keyEventDisplayService.js index cbfce14d76..6b0a7e06d5 100644 --- a/guacamole/src/main/frontend/src/app/player/services/keyEventDisplayService.js +++ b/guacamole/src/main/frontend/src/app/player/services/keyEventDisplayService.js @@ -361,8 +361,8 @@ angular.module('player').factory('keyEventDisplayService', }); - // All processed batches - return batches; + // All processed batches with events + return batches.filter(batch => batch.events.length > 0); };