Skip to content

Commit

Permalink
Fix importing v3 templates issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fttx committed Nov 2, 2023
1 parent 09cde40 commit 21e64f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ionic/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class MyApp {
outputTemplate = this.utils.upgradeTemplate(outputTemplate, outputTemplate.version);

// Set the new template in the settings object
if (outputTemplate.extras.deleteOtherTemplates) {
if (outputTemplate.extras && outputTemplate.extras.deleteOtherTemplates) {
settings.outputProfiles = [outputTemplate];
} else {
// push isn't working, so we're using the spread operator (duplicated issue on the settings.ts file)
Expand Down Expand Up @@ -529,7 +529,7 @@ export class MyApp {
}

showRebaseTemplatePathDialog(outputProfile: OutputProfileExportedModel): Promise<OutputProfileExportedModel> {
if (!outputProfile.extras.basePath) {
if (!outputProfile.extras || !outputProfile.extras.basePath) {
return new Promise(resolve => { resolve(outputProfile) });
}

Expand Down

0 comments on commit 21e64f2

Please sign in to comment.