Skip to content

Commit

Permalink
Merge pull request #25311 from jhipster/fix-25285
Browse files Browse the repository at this point in the history
fix new application logic for jdl without applications
  • Loading branch information
DanielFran authored Feb 23, 2024
2 parents 21ea560 + 0cfeb37 commit 91a4106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/jdl/internal/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ export const baseNameConfigExists = baseName => existsSync(baseName === undefine
* @return {boolean}
*/
export const allNewApplications = applications => {
if (applications.length === 1) return !baseNameConfigExists();
if (applications.length < 2) return !baseNameConfigExists();
return !applications.find(application => baseNameConfigExists(application.config.baseName));
};

0 comments on commit 91a4106

Please sign in to comment.