Skip to content

Commit

Permalink
Fixes electron generation (microsoft#5161)
Browse files Browse the repository at this point in the history
Co-authored-by: Soroush <[email protected]>
  • Loading branch information
hatpick and sorgh authored Dec 5, 2020
1 parent 9b46822 commit ff9c593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Composer/packages/server/src/controllers/formDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getTemplateDirs = async () => {
if (templatesRootDir && templatesRootDir.length) {
for (const dirName of await fs.readdir(templatesRootDir)) {
const dir = path.join(templatesRootDir, dirName);
if ((await fs.lstat(dir)).isDirectory()) {
if ((await fs.lstat(dir)).isDirectory() && dir.endsWith('standard')) {
// Add templates subdirectories as templates
dirs.push(dir);
}
Expand Down

0 comments on commit ff9c593

Please sign in to comment.