diff --git a/frontend/src/lib/components/Playlist/Playlist.tsx b/frontend/src/lib/components/Playlist/Playlist.tsx index 42acac30276b0..4fc7b754cd781 100644 --- a/frontend/src/lib/components/Playlist/Playlist.tsx +++ b/frontend/src/lib/components/Playlist/Playlist.tsx @@ -284,12 +284,13 @@ export function ListSection< }): JSX.Element { return ( <> - {items.length && - items.map((item) => ( -
onClick(item)}> - {render({ item, isActive: item.id === activeItemId })} -
- ))} + {items.length > 0 + ? items.map((item) => ( +
onClick(item)}> + {render({ item, isActive: item.id === activeItemId })} +
+ )) + : null} {footer} ) diff --git a/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylist.tsx b/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylist.tsx index 01a34e228013c..e304bd196ab93 100644 --- a/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylist.tsx +++ b/frontend/src/scenes/session-recordings/playlist/SessionRecordingsPlaylist.tsx @@ -125,16 +125,18 @@ export function SessionRecordingsPlaylist(props: SessionRecordingPlaylistLogicPr /> ), footer: ( -
- {sessionRecordingsResponseLoading ? ( - <> - Loading older recordings - - ) : hasNext ? ( - maybeLoadSessionRecordings('older')}>Load more - ) : ( - 'No more results' - )} +
+
+ {sessionRecordingsResponseLoading ? ( + <> + Loading older recordings + + ) : hasNext ? ( + maybeLoadSessionRecordings('older')}>Load more + ) : ( + 'No more results' + )} +
), })