Skip to content

Commit

Permalink
Remove ServerType check on shared playlist display
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Mar 4, 2024
1 parent 237fb91 commit 83b5afb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Button, Text } from '/@/renderer/components';
import { usePlayQueueAdd } from '/@/renderer/features/player';
import { usePlaylistList } from '/@/renderer/features/playlists';
import { AppRoute } from '/@/renderer/router/routes';
import { Play, ServerType } from '/@/renderer/types';
import { Play } from '/@/renderer/types';
import AutoSizer from 'react-virtualized-auto-sizer';
import { FixedSizeList, ListChildComponentProps } from 'react-window';
import { useHideScrollbar } from '/@/renderer/hooks';
Expand Down Expand Up @@ -164,7 +164,7 @@ export const SidebarPlaylistList = ({ data }: SidebarPlaylistListProps) => {
const memoizedItemData = useMemo(() => {
const base = { defaultFullPlaylist, handlePlay: handlePlayPlaylist };

if (!type || !username || type === ServerType.JELLYFIN || !data?.items) {
if (!type || !username || !data?.items) {
return { ...base, items: data?.items };
}

Expand Down

0 comments on commit 83b5afb

Please sign in to comment.