From 437d1e04c8487a869abcddf6758a6a2e0ed6039a Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 5 Sep 2024 18:55:50 +0100 Subject: [PATCH] Fangle types --- .../playlist/SessionRecordingsPlaylistSettings.tsx | 4 ++-- .../playlist/sessionRecordingsPlaylistLogic.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylistSettings.tsx b/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylistSettings.tsx index ecffb51e3dfda..76a223914a7ea 100644 --- a/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylistSettings.tsx +++ b/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylistSettings.tsx @@ -63,7 +63,7 @@ export function SessionRecordingsPlaylistSettings(): JSX.Element { }, { value: 'keypress_count', - label: 'Keypresses', + label: 'Key presses', }, { value: 'mouse_activity_count', @@ -81,7 +81,7 @@ export function SessionRecordingsPlaylistSettings(): JSX.Element { }, ]} size="small" - value={orderBy} + value={orderBy as string} onChange={setOrderBy} /> diff --git a/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts b/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts index b9eb899a46607..f08944e03ecb1 100644 --- a/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts +++ b/frontend/src/scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic.ts @@ -426,10 +426,10 @@ export const sessionRecordingsPlaylistLogic = kea ({ orderBy: [ - 'start_time' as Omit, + 'start_time' as RecordingsQuery['order'], { persist: true }, { - setOrderBy: (_, { orderBy }) => orderBy, + setOrderBy: (_, { orderBy }) => orderBy as RecordingsQuery['order'], }, ], randomSample: [ @@ -738,7 +738,7 @@ export const sessionRecordingsPlaylistLogic = kea [s.orderBy, s.randomSample], (orderBy, randomSample): RecordingsQuery['order'] => { - return randomSample ? 'random_sample' : orderBy + return randomSample ? 'random_sample' : (orderBy as RecordingsQuery['order']) }, ],