Skip to content

Commit c9fd848

Browse files
committed
Fix 'total_time_spent' undefined error
1 parent d525463 commit c9fd848

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/hasTimes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ class hasTimes extends Base {
110110
if ( //
111111
// skip if description parsing is disabled
112112
this.config.get('_skipDescriptionParsing') ||
113+
// or time stats are not available
114+
!this.data.time_stats || !this.data.time_stats.total_time_spent ||
113115
// or the total time matches
114116
!this.data.time_stats ||
115117
totalTimeSpent === this.data.time_stats.total_time_spent ||

0 commit comments

Comments
 (0)