From 0bcb98b184e80f658ff940ef3c471461e77e2f39 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 3 May 2023 10:57:53 +0200 Subject: [PATCH] fix(player): fix frustrations ingestion --- frontend/app/player/web/WebPlayer.ts | 1 + frontend/app/types/session/session.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/app/player/web/WebPlayer.ts b/frontend/app/player/web/WebPlayer.ts index ed9a70e67..89b246311 100644 --- a/frontend/app/player/web/WebPlayer.ts +++ b/frontend/app/player/web/WebPlayer.ts @@ -71,6 +71,7 @@ export default class WebPlayer extends Player { updateLists = (session: any) => { let lists = { event: session.events || [], + frustrations: session.frustrations || [], stack: session.stackEvents || [], exceptions: session.errors?.map(({ name, ...rest }: any) => Log({ diff --git a/frontend/app/types/session/session.ts b/frontend/app/types/session/session.ts index aae250fba..fcf943aff 100644 --- a/frontend/app/types/session/session.ts +++ b/frontend/app/types/session/session.ts @@ -352,6 +352,7 @@ export default class Session { return ev.type === TYPES.CLICKRAGE } ) + const frustrationIssues = issuesList.filter(i => i.type === issueTypes.MOUSE_THRASHING) const frustrationList = [...frustrationEvents, ...frustrationIssues].sort(sortEvents) || [];