Fix form 404

This commit is contained in:
Julien Nahum 2024-01-16 15:36:14 +01:00
parent 5e6f4d78a1
commit 50c3861ebb
1 changed files with 7 additions and 2 deletions

View File

@ -98,8 +98,13 @@ const loadForm = async (setup=false) => {
} }
formsStore.save(data.value) formsStore.save(data.value)
} else { } else {
try {
const data = await formsStore.publicFetch(slug) const data = await formsStore.publicFetch(slug)
formsStore.save(data) formsStore.save(data)
} catch (e) {
formsStore.stopLoading()
return
}
} }
formsStore.stopLoading() formsStore.stopLoading()