@@ -50,8 +50,6 @@ interface RelevantFailedLabwareLocations {
50
50
newLoc : LabwareLocation | null
51
51
}
52
52
53
- export type interventionLayout = 'default' | 'stacked'
54
-
55
53
export type UseFailedLabwareUtilsResult = UseTipSelectionUtilsResult & {
56
54
/* The name of the labware relevant to the failed command, if any. */
57
55
failedLabwareName : string | null
@@ -63,7 +61,6 @@ export type UseFailedLabwareUtilsResult = UseTipSelectionUtilsResult & {
63
61
failedLabwareNickname : string | null
64
62
/* Details relating to the labware location. */
65
63
failedLabwareLocations : RelevantFailedLabwareLocations
66
- layout : interventionLayout
67
64
labwareQuantity : string | null
68
65
}
69
66
@@ -128,26 +125,20 @@ export function useFailedLabwareUtils({
128
125
errorKind,
129
126
} )
130
127
131
- console . log ( 'WTFFFF: ' , recentRelevantFailedLabwareCmd )
128
+ console . log ( 'WTFFFF: ' , failedLabwareLocations )
132
129
const labwareQuantity = getFailedLabwareQuantity (
133
130
runCommands ,
134
131
recentRelevantFailedLabwareCmd ,
135
132
errorKind
136
133
)
137
134
138
- let layout
139
- if ( errorKind !== ERROR_KINDS . STALL_WHILE_STACKING ) {
140
- layout = 'default'
141
- } else layout = 'stacked'
142
-
143
135
return {
144
136
...tipSelectionUtils ,
145
137
failedLabwareName : failedLabwareDetails ?. name ?? null ,
146
138
failedLabware,
147
139
relevantWellName,
148
140
failedLabwareNickname : failedLabwareDetails ?. nickname ?? null ,
149
141
failedLabwareLocations,
150
- layout,
151
142
labwareQuantity,
152
143
}
153
144
}
@@ -478,6 +469,7 @@ export function useRelevantFailedLwLocations({
478
469
RelevantFailedLabwareLocations ,
479
470
'displayNameNewLoc' | 'newLoc'
480
471
> => {
472
+ console . log ( 'in new location:' , failedCommandByRunRecord ?. commandType )
481
473
switch ( failedCommandByRunRecord ?. commandType ) {
482
474
case 'moveLabware' :
483
475
return {
@@ -487,6 +479,19 @@ export function useRelevantFailedLwLocations({
487
479
} ) ,
488
480
newLoc : failedCommandByRunRecord . params . newLocation ,
489
481
}
482
+ case 'flexStacker/retrieve' :
483
+ case 'flexStacker/store' :
484
+ return {
485
+ displayNameNewLoc : getLabwareDisplayLocation ( {
486
+ ...BASE_DISPLAY_PARAMS ,
487
+ location : BASE_DISPLAY_PARAMS . loadedModules . find (
488
+ m => m . id === failedCommandByRunRecord ?. params . moduleId
489
+ ) . location ,
490
+ } ) ,
491
+ newLoc : {
492
+ moduleId : failedCommandByRunRecord ?. params . moduleId ,
493
+ } ,
494
+ }
490
495
default :
491
496
return {
492
497
displayNameNewLoc : null ,
0 commit comments