学员学习页面数据错误

This commit is contained in:
unknown 2023-09-22 15:11:37 +08:00
parent f580bc5ac7
commit d6da505574
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ const CourseUserPage = () => {
dataIndex: "id",
render: (_, record: any) => (
<>
{records[record.id] ? (
{records[record.id] && records[record.id].finished_at ? (
<span>{dateFormat(String(records[record.id].finished_at))}</span>
) : (
<span>-</span>

View File

@ -260,7 +260,7 @@ const MemberLearnPage = () => {
dataIndex: "finished_at",
render: (_, record: any) => (
<>
{records[record.id] ? (
{records[record.id] && records[record.id].finished_at ? (
<span>{dateFormat(String(records[record.id].finished_at))}</span>
) : (
<span>-</span>