1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Merge pull request #8534 from Budibase/fix/templates-from-website

ensure /app prefix gets stripped from website templates
This commit is contained in:
Martin McKeaveney 2022-11-05 14:00:13 +00:00 committed by GitHub
commit 1fda786037
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@
const autoCreateApp = async () => {
try {
// Auto name app if has same name
let appName = template.key
let appName = template.key.replace("app/", "")
const appsWithSameName = $apps.filter(app =>
app.name?.startsWith(appName)
)