We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bea756 commit c9cd0a6Copy full SHA for c9cd0a6
pages/api/home/home.tsx
@@ -87,7 +87,7 @@ const Home = ({
87
key: apiKey,
88
},
89
);
90
- if (dispatch) {
+ if (dispatch && data) {
91
dispatch({field: 'models', value: data});
92
}
93
0 commit comments