syntex-error
Advanced tools
Comparing version 1.0.13 to 1.0.14
{ | ||
"name": "syntex-error", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "A comprehensive error handling package tailored for use in both Express backend and React frontend applications. Simplify the process of managing and reporting errors seamlessly across your entire stack, providing a unified approach for a more efficient debugging and user experience.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -54,3 +54,3 @@ import axios from "axios"; | ||
export const fetchTrendingMovies = (page)=>{ | ||
return apiCall(trendingMoviesEndpoint+`&page=${page}`); | ||
return apiCall(trendingMoviesEndpoint+`&page=${page ? page : 1}`); | ||
} | ||
@@ -57,0 +57,0 @@ export const fetchUpcomingMovies = ()=>{ |
@@ -13,3 +13,3 @@ import {fetchTrendingMovies,fetchUpcomingMovies,fetchTopRatedMovies,searchYoutubeVideo} from "../Api/index.js" | ||
async TrendingMovies(page = 1){ | ||
async TrendingMovies(page){ | ||
const trending = await fetchTrendingMovies(page); | ||
@@ -16,0 +16,0 @@ return trending.results; |
14268