Skip to content

Commit 44fbde5

Browse files
committed
fix: remove empty line when no module html snippets exist
1 parent 15a002b commit 44fbde5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/steps/2.addModules/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ export default defineNuxtConfig(${inspect(nuxtConfig, { compact: false })})
6868
const moduleIndexHtmlSnippets = selectedModules.map((module) => moduleConfigs[module].htmlForIndexVue).filter(html => typeof html !== "undefined")
6969
const nuxtPagesIndexVue = `<template>
7070
<div>
71-
<h1 ${selectedModules.includes("tailwind") ? "class=\"text-4xl\"" : ""}>Welcome to your sidebase app!</h1>
72-
${moduleIndexHtmlSnippets.join("\n ")}
71+
<h1 ${selectedModules.includes("tailwind") ? "class=\"text-4xl\"" : ""}>Welcome to your sidebase app!</h1>${moduleIndexHtmlSnippets.length > 0 ? "\n" + moduleIndexHtmlSnippets.join("\n ") : ""}
7372
</div>
7473
</template>
7574
`

0 commit comments

Comments
 (0)