@@ -51,7 +51,7 @@ export default function getActions({
51
51
const a = ACTION_INFO [ action ] ;
52
52
if ( ! a ) continue ;
53
53
if ( action == "suspend" ) {
54
- if ( configuration . cloud != "google-cloud" ) {
54
+ if ( configuration ? .cloud != "google-cloud" ) {
55
55
continue ;
56
56
}
57
57
if ( getArchitecture ( configuration ) == "arm64" ) {
@@ -61,12 +61,12 @@ export default function getActions({
61
61
continue ;
62
62
}
63
63
// must have no gpu and <= 208GB of RAM -- https://cloud.google.com/compute/docs/instances/suspend-resume-instance
64
- if ( configuration . acceleratorType ) {
64
+ if ( configuration ? .acceleratorType ) {
65
65
continue ;
66
66
}
67
67
// [ ] TODO: we don't have an easy way to check the RAM requirement right now.
68
68
}
69
- if ( ! editModal && configuration . ephemeral && action == "stop" ) {
69
+ if ( ! editModal && configuration ? .ephemeral && action == "stop" ) {
70
70
continue ;
71
71
}
72
72
const {
@@ -79,10 +79,10 @@ export default function getActions({
79
79
confirmMessage,
80
80
clouds,
81
81
} = a ;
82
- if ( danger && ! configuration . ephemeral && ! editModal ) {
82
+ if ( danger && ! configuration ? .ephemeral && ! editModal ) {
83
83
continue ;
84
84
}
85
- if ( clouds && ! clouds . includes ( configuration . cloud ) ) {
85
+ if ( clouds && ! clouds . includes ( configuration ? .cloud ) ) {
86
86
continue ;
87
87
}
88
88
v . push (
@@ -179,7 +179,7 @@ function ActionButton({
179
179
}
180
180
}
181
181
182
- if ( configuration . cloud == "onprem" ) {
182
+ if ( configuration ? .cloud == "onprem" ) {
183
183
if ( action == "start" ) {
184
184
setShowOnPremStart ( true ) ;
185
185
} else if ( action == "stop" ) {
@@ -244,7 +244,7 @@ function ActionButton({
244
244
onOpenChange = { setPopConfirm }
245
245
placement = "right"
246
246
okButtonProps = { {
247
- disabled : ! configuration . ephemeral && danger && ! understand ,
247
+ disabled : ! configuration ? .ephemeral && danger && ! understand ,
248
248
} }
249
249
title = {
250
250
< div >
@@ -269,7 +269,7 @@ function ActionButton({
269
269
} `}
270
270
/>
271
271
) }
272
- { ! configuration . ephemeral && danger && (
272
+ { ! configuration ? .ephemeral && danger && (
273
273
< div >
274
274
{ /* ATTN: Not using a checkbox here to WORKAROUND A BUG IN CHROME that I see after a day or so! */ }
275
275
< Button onClick = { ( ) => setUnderstand ( ! understand ) } type = "text" >
@@ -443,7 +443,7 @@ function OnPremGuide({ setShow, configuration, id, title, action }) {
443
443
</ div >
444
444
}
445
445
/>
446
- { configuration . gpu && (
446
+ { configuration ? .gpu && (
447
447
< span >
448
448
Since you clicked GPU, you must also have an NVIDIA GPU and the
449
449
Cuda drivers installed and working.{ " " }
0 commit comments