We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05657a0 commit d5292b1Copy full SHA for d5292b1
src/client/user.ts
@@ -146,11 +146,15 @@ export class JikeUser<M extends boolean = boolean> {
146
if (!isSuccess(result)) throwRequestFailureError(result, '查询用户被关注')
147
148
const newKey = result.data.loadMoreKey?.createdAt
149
- const data: FollowerWithTime = {
150
- user: result.data.data[0],
151
- followTime: newKey,
152
- }
153
- return [newKey, [data]]
+ const data: FollowerWithTime[] = result.data.data[0]
+ ? [
+ {
+ user: result.data.data[0],
+ followTime: newKey,
154
+ },
155
+ ]
156
+ : []
157
+ return [newKey, data]
158
}
159
160
return fetchPaginated(
0 commit comments