File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default class Deploy extends AppCLIBaseCommand {
68
68
flags [ "app-uid" ] = this . manifestData ?. uid ?? flags [ "app-uid" ] ;
69
69
this . sharedConfig . org = await this . getOrganization ( ) ;
70
70
const app = await this . fetchAppDetails ( ) ;
71
- this . flags [ "app-uid" ] = app ?. uid ;
71
+ this . flags [ "app-uid" ] = app ?. uid || "" ;
72
72
73
73
const apolloClient = await this . getApolloClient ( ) ;
74
74
const projects = await getProjects ( apolloClient ) ;
@@ -99,15 +99,17 @@ export default class Deploy extends AppCLIBaseCommand {
99
99
return ;
100
100
}
101
101
102
- await updateApp (
103
- flags ,
104
- this . sharedConfig . org ,
105
- {
106
- managementSdk : this . managementAppSdk ,
107
- log : this . log ,
108
- } ,
109
- updateHostingPayload
110
- ) ;
102
+ if ( this . flags [ "app-uid" ] ) {
103
+ await updateApp (
104
+ flags ,
105
+ this . sharedConfig . org ,
106
+ {
107
+ managementSdk : this . managementAppSdk ,
108
+ log : this . log ,
109
+ } ,
110
+ updateHostingPayload
111
+ ) ;
112
+ }
111
113
112
114
this . log (
113
115
this . $t ( deployAppMsg . APP_DEPLOYED , {
You can’t perform that action at this time.
0 commit comments