Skip to content

Commit

Permalink
fix: resolve type mismatch error in Podcast object creation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglun committed Nov 27, 2024
1 parent 6346d74 commit 34116d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/LPodcast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const LPodcast: React.FC<LPodcastProps> = ({ visible = true }) => {
const [isMini, setIsMini] = useState(true);
const bearStore = useBearStore();
const { currentTrack, setCurrentTrack, setTracks, podcastPlayingStatus } = bearStore;
console.log("🚀 ~ file: index.tsx:41 ~ currentTrack:", currentTrack);

// 获取所有播客数据
const podcasts = useLiveQuery(() => db.podcasts.orderBy("add_date").reverse().toArray());
Expand All @@ -54,7 +53,9 @@ export const LPodcast: React.FC<LPodcastProps> = ({ visible = true }) => {
title: podcast.title,
url: podcast.mediaURL,
thumbnail: podcast.thumbnail,
author: podcast.feed_title,
author: podcast.author,
feed_title: podcast.feed_title,
feed_logo: podcast.feed_logo,
}))
: [],
[podcasts]
Expand Down

0 comments on commit 34116d7

Please sign in to comment.