Skip to content

Commit

Permalink
[Public-36-2] fix when comment period from engage
Browse files Browse the repository at this point in the history
  • Loading branch information
tolkamps1 committed Jan 13, 2025
1 parent dbdc0be commit 7f108b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/project/commenting-tab/commenting-tab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class CommentingTabComponent implements OnInit, OnDestroy {
if (res.data) {
this.commentPeriods = res.data;
this.commentPeriods.forEach(element => {
const match = element.instructions.match(/Comment Period on the (.*?) for /);
const match = element.instructions ? element.instructions.match(/Comment Period on the (.*?) for /) : null;
element.instructions = match ? match[1] : '';
});
}
Expand Down

0 comments on commit 7f108b7

Please sign in to comment.