From c32a07d38d281c8ca8b4c3e688b97bd65eb6d839 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 14 Mar 2024 14:51:25 +0000 Subject: [PATCH] fix: custom player inspector events should respect mini filters (#20929) * fix: custom player inspector events should respect mini filters * all the alls --- .../player/inspector/playerInspectorLogic.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts index f1415221ba327..09ebe7988bc3e 100644 --- a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts +++ b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.ts @@ -604,7 +604,15 @@ export const playerInspectorLogic = kea([ // always show offline status changes if (item.type === 'offline-status' || item.type === 'browser-visibility') { - include = true + include = + tab === SessionRecordingPlayerTab.DOCTOR || + !!( + miniFiltersByKey['performance-all']?.enabled || + miniFiltersByKey['all-everything']?.enabled || + miniFiltersByKey['all-automatic']?.enabled || + miniFiltersByKey['console-all']?.enabled || + miniFiltersByKey['events-all']?.enabled + ) } if (item.type === SessionRecordingPlayerTab.DOCTOR && tab === SessionRecordingPlayerTab.DOCTOR) {