Skip to content

Commit 919583f

Browse files
committed
[fix] fix index create undefined group
1 parent 185209d commit 919583f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export default modelExtend(pageModel, {
3636
*query ({ payload }, { call, put }) {
3737
const { current_group, page } = payload
3838

39+
if (!current_group) return
40+
3941
const qas = yield call(Service_getQas, current_group, page)
4042
const total = yield call(Service_getTotal, current_group)
4143

0 commit comments

Comments
 (0)