Merge pull request #8534 from Budibase/fix/templates-from-website
ensure /app prefix gets stripped from website templates
This commit is contained in:
commit
f880367b1d
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@
|
||||||
const autoCreateApp = async () => {
|
const autoCreateApp = async () => {
|
||||||
try {
|
try {
|
||||||
// Auto name app if has same name
|
// Auto name app if has same name
|
||||||
let appName = template.key
|
let appName = template.key.replace("app/", "")
|
||||||
const appsWithSameName = $apps.filter(app =>
|
const appsWithSameName = $apps.filter(app =>
|
||||||
app.name?.startsWith(appName)
|
app.name?.startsWith(appName)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue