Skip to content

Commit

Permalink
fix: error in recording playlist if duration filters are undefined (#…
Browse files Browse the repository at this point in the history
…20591)

* fix: duration filter can be undefined

* so don't let it be
  • Loading branch information
pauldambra authored Feb 28, 2024
1 parent 423c7e7 commit 8b7b97e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import { LemonLabel } from 'lib/lemon-ui/LemonLabel/LemonLabel'
import { ActionFilter } from 'scenes/insights/filters/ActionFilter/ActionFilter'
import { MathAvailability } from 'scenes/insights/filters/ActionFilter/ActionFilterRow/ActionFilterRow'
import { TestAccountFilter } from 'scenes/insights/filters/TestAccountFilter'
import { defaultRecordingDurationFilter } from 'scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic'

import { groupsModel } from '~/models/groupsModel'
import { EntityTypes, FilterableLogLevel, RecordingDurationFilter, RecordingFilters } from '~/types'
import { EntityTypes, FilterableLogLevel, RecordingFilters } from '~/types'

import { DurationFilter } from './DurationFilter'

Expand Down Expand Up @@ -107,7 +108,7 @@ export const AdvancedSessionRecordingsFilters = ({
duration_type_filter: newDurationType,
})
}}
recordingDurationFilter={filters.session_recording_duration as RecordingDurationFilter}
recordingDurationFilter={filters.session_recording_duration || defaultRecordingDurationFilter}
durationTypeFilter={filters.duration_type_filter || 'duration'}
pageKey="session-recordings"
/>
Expand Down

0 comments on commit 8b7b97e

Please sign in to comment.