fix: 工作台tab数量不一致(20≠15+4)
riskTodos 缺少 RETIREMENT 类型,导致退休风险待办不计入风险提醒tab
This commit is contained in:
@@ -151,7 +151,7 @@ export default function Dashboard() {
|
||||
})
|
||||
}
|
||||
|
||||
const riskTodos = data?.todos.filter((t) => t.type === 'CONTRACT' || t.type === 'TERMINATION' || t.type === 'ONBOARDING') || []
|
||||
const riskTodos = data?.todos.filter((t) => t.type === 'CONTRACT' || t.type === 'TERMINATION' || t.type === 'ONBOARDING' || t.type === 'RETIREMENT') || []
|
||||
const taskTodos = data?.todos.filter((t) => t.type === 'MONTHLY' || t.type === 'SALARY') || []
|
||||
const filteredTodos = activeTab === 'risk' ? riskTodos : taskTodos
|
||||
|
||||
|
||||
Reference in New Issue
Block a user