Skip to content

Commit 4e7e380

Browse files
author
Working On It
committed
fix: fix crash in activitity page (casibase#1423)
1 parent 28e3c55 commit 4e7e380

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

object/activity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func GetActivities(days int, user string, fieldName string) ([]*Activity, error)
9494
}
9595
value, err := getTargetfieldValue(record, fieldName)
9696
if err != nil {
97-
return nil, err
97+
return nil, fmt.Errorf("failed to parse record: name %s, field %s, error: %v", record.Name, fieldName, err)
9898
}
9999
activities[dayIndex].FieldCount[value] += 1
100100
}

web/src/ActivityPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ class ActivityPage extends BaseListPage {
411411
<Col span={1} />
412412
</Row>
413413
<Row style={{marginTop: "20px"}} >
414-
<Col span={1} key="left-spacer" />,
414+
<Col span={1} key="left-spacer" />
415415
{this.renderSubPieCharts()}
416-
<Col span={1} key="left-spacer" />,
416+
<Col span={1} key="left-spacer" />
417417
</Row>
418418
</React.Fragment>
419419
);

0 commit comments

Comments
 (0)