File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/view/components/profiler/components/CommitInfo Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,17 @@ export function CommitInfo() {
99 const commit = useObserver ( ( ) => store . profiler . activeCommit . $ ) ;
1010 const isRecording = useObserver ( ( ) => store . profiler . isRecording . $ ) ;
1111
12- if ( commit === null || isRecording ) {
12+ if ( commit === null || ! commit . rendered . length || isRecording ) {
1313 return null ;
1414 }
1515
16- const root = commit . nodes . get ( commit . commitRootId ) ! ;
17- if ( ! root ) {
18- return null ;
19- }
16+ const startTime = commit . nodes . get ( commit . rendered [ 0 ] ) ?. startTime || 0 ;
2017
2118 return (
2219 < SidebarPanel title = "Commit Stats" >
2320 < dl class = { s . list } >
2421 < dt class = { s . title } > Start:</ dt >
25- < dd class = { s . value } > { formatTime ( root . startTime ) } </ dd >
22+ < dd class = { s . value } > { formatTime ( startTime ) } </ dd >
2623 < br />
2724 < dt class = { s . title } > Duration:</ dt >
2825 < dd class = { s . value } > { formatTime ( commit . duration ) } </ dd >
You can’t perform that action at this time.
0 commit comments