Skip to content

Commit

Permalink
fix: better handle bad transistor data
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Oct 30, 2024
1 parent 339970c commit bbff3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/transistor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const getAllEpisodeSlugs = async () => {
!data?.data?.length ||
data.meta.currentPage >= data.meta.totalPages
) {
return;
return slugs;
}

slugs = [
Expand Down Expand Up @@ -166,7 +166,7 @@ export const getAllEpisodes = async () => {
!data?.data?.length ||
data.meta.currentPage >= data.meta.totalPages
) {
return;
return episodes;
}

episodes = [...episodes, ...data.data];
Expand Down

0 comments on commit bbff3ea

Please sign in to comment.