Skip to content

Commit c9cd0a6

Browse files
committed
fix
1 parent 6bea756 commit c9cd0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/api/home/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const Home = ({
8787
key: apiKey,
8888
},
8989
);
90-
if (dispatch) {
90+
if (dispatch && data) {
9191
dispatch({field: 'models', value: data});
9292
}
9393
}

0 commit comments

Comments
 (0)