Skip to content

Commit 46fe633

Browse files
JYC0413JYCOfficial
authored andcommitted
fix
1 parent 8f13212 commit 46fe633

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pages/api/home/home.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ const Home = ({
115115
}, [router.query.api_key]);
116116

117117
useEffect(() => {
118-
if (api) {
119118
getData()
120-
}
121119
}, [api, apiKey])
122120

123121
// FETCH MODELS ----------------------------------------------

services/useApiService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const useApiService = () => {
3030
// );
3131

3232
const getModels = async (params: GetModelsRequestProps) => {
33-
if(params.url){
33+
// if(params.url){
3434
let url = `${params.url}/v1/models`;
3535
try {
3636
const response = await fetch(url, {
@@ -61,7 +61,7 @@ const useApiService = () => {
6161
} catch (e) {
6262
return {}
6363
}
64-
}
64+
// }
6565
}
6666

6767
return {

0 commit comments

Comments
 (0)