File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
apps/webapp/app/presenters/v3 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,15 @@ export class ErrorGroupPresenter extends BasePresenter {
242242
243243 const sortedVersions = sortVersionsDescending ( [ ...versionSet ] ) ;
244244
245+ // Build the data for the graph
246+ // For each time bucket, if a value exists for a version set the value (don't add zeros)
245247 const data = buckets . map ( ( epoch ) => {
246248 const point : Record < string , number | Date > = { date : new Date ( epoch * 1000 ) } ;
247249 for ( const version of sortedVersions ) {
248- point [ version ] = byBucketVersion . get ( `${ epoch } :${ version } ` ) ?? 0 ;
250+ const versionValue = byBucketVersion . get ( `${ epoch } :${ version } ` ) ;
251+ if ( versionValue ) {
252+ point [ version ] = versionValue ;
253+ }
249254 }
250255 return point ;
251256 } ) ;
You can’t perform that action at this time.
0 commit comments