File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
components/dashboard/src/projects Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -269,8 +269,10 @@ export default function () {
269
269
. filter ( filter )
270
270
. slice ( 0 , 10 )
271
271
. map ( ( branch , index ) => {
272
- const prebuild = lastPrebuild ( branch ) ; // this might lazily trigger fetching of prebuild details
273
-
272
+ let prebuild = lastPrebuild ( branch ) ; // this might lazily trigger fetching of prebuild details
273
+ if ( prebuild && prebuild . info . changeHash !== branch . changeHash ) {
274
+ prebuild = undefined ;
275
+ }
274
276
const avatar = branch . changeAuthorAvatar && (
275
277
< img
276
278
className = "rounded-full w-4 h-4 inline-block align-text-bottom mr-2 overflow-hidden"
@@ -360,7 +362,7 @@ export default function () {
360
362
title : "Cancel Prebuild" ,
361
363
customFontStyle :
362
364
"text-red-600 dark:text-red-400 hover:text-red-800 dark:hover:text-red-300" ,
363
- onClick : ( ) => cancelPrebuild ( prebuild . info . id ) ,
365
+ onClick : ( ) => cancelPrebuild ( prebuild ! . info . id ) ,
364
366
} ,
365
367
]
366
368
: [ ]
You can’t perform that action at this time.
0 commit comments