Skip to content

Commit

Permalink
fix(create): can not find template name
Browse files Browse the repository at this point in the history
  • Loading branch information
neikvon committed Oct 14, 2020
1 parent f20a1b7 commit 5cad77c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fbi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ export class Fbi extends Factory {
public resolveTemplates(targetId?: string) {
if (targetId) {
const found = this.resolveTemplate(targetId)
return found ? [found] : []
if (found) {
return [found]
}
}

const allFactories = this.createAllFactories()
Expand Down

0 comments on commit 5cad77c

Please sign in to comment.