Skip to content

Commit

Permalink
Fangle types
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Sep 5, 2024
1 parent 288488e commit 437d1e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function SessionRecordingsPlaylistSettings(): JSX.Element {
},
{
value: 'keypress_count',
label: 'Keypresses',
label: 'Key presses',
},
{
value: 'mouse_activity_count',
Expand All @@ -81,7 +81,7 @@ export function SessionRecordingsPlaylistSettings(): JSX.Element {
},
]}
size="small"
value={orderBy}
value={orderBy as string}
onChange={setOrderBy}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ export const sessionRecordingsPlaylistLogic = kea<sessionRecordingsPlaylistLogic
})),
reducers(({ props }) => ({
orderBy: [
'start_time' as Omit<RecordingsQuery['order'], 'random_sample'>,
'start_time' as RecordingsQuery['order'],
{ persist: true },
{
setOrderBy: (_, { orderBy }) => orderBy,
setOrderBy: (_, { orderBy }) => orderBy as RecordingsQuery['order'],
},
],
randomSample: [
Expand Down Expand Up @@ -738,7 +738,7 @@ export const sessionRecordingsPlaylistLogic = kea<sessionRecordingsPlaylistLogic
queryOrder: [
(s) => [s.orderBy, s.randomSample],
(orderBy, randomSample): RecordingsQuery['order'] => {
return randomSample ? 'random_sample' : orderBy
return randomSample ? 'random_sample' : (orderBy as RecordingsQuery['order'])
},
],

Expand Down

0 comments on commit 437d1e0

Please sign in to comment.