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 2b7e443 commit 00a56b5Copy full SHA for 00a56b5
src/page/topic/index.tsx
@@ -171,7 +171,7 @@ const TopicList: React.FC<Props> = (props) => {
171
<ProList
172
rowKey="id"
173
showActions="always"
174
- dataSource={data}
+ dataSource={data.filter((item: any) => item?.author?.loginname)}
175
loading={loading}
176
metas={metas}
177
className={styles.list}
src/service/topic.ts
@@ -18,9 +18,7 @@ export const queryTopicList = async (params: {
18
},
19
};
20
21
- const res = await request(`${BASE_URL}/api/v1/topics`, options);
22
- res.data = res.data.filter((item: any) => item?.author?.loginname);
23
- return res;
+ return request(`${BASE_URL}/api/v1/topics`, options);
24
25
26
export const queryTopicDetail = async (params: {
0 commit comments