Skip to content

Commit 99f75d8

Browse files
committed
added check for app-uid
1 parent 4cd7cc6 commit 99f75d8

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/commands/app/deploy.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class Deploy extends AppCLIBaseCommand {
6868
flags["app-uid"] = this.manifestData?.uid ?? flags["app-uid"];
6969
this.sharedConfig.org = await this.getOrganization();
7070
const app = await this.fetchAppDetails();
71-
this.flags["app-uid"] = app?.uid;
71+
this.flags["app-uid"] = app?.uid || "";
7272

7373
const apolloClient = await this.getApolloClient();
7474
const projects = await getProjects(apolloClient);
@@ -99,15 +99,17 @@ export default class Deploy extends AppCLIBaseCommand {
9999
return;
100100
}
101101

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+
}
111113

112114
this.log(
113115
this.$t(deployAppMsg.APP_DEPLOYED, {

0 commit comments

Comments
 (0)