fix loading show form page (#361)

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka
2024-03-25 16:05:24 +01:00
committed by GitHub
parent e517cba88a
commit 2191f46214
5 changed files with 48 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ useOpnSeoMeta({
title: 'Home'
})
const route = useRoute()
const authStore = useAuthStore()
const formsStore = useFormsStore()
const workingFormStore = useWorkingFormStore()
@@ -195,7 +196,7 @@ onMounted(() => {
if (form.value) {
workingFormStore.set(form.value)
} else {
formsStore.loadAll(useWorkspacesStore().currentId)
formsStore.loadForm(route.params.slug)
}
})