diff --git a/client/components/global/Modal.vue b/client/components/global/Modal.vue index c075e7c..d830c96 100644 --- a/client/components/global/Modal.vue +++ b/client/components/global/Modal.vue @@ -49,129 +49,123 @@ - diff --git a/client/components/open/forms/components/FormEditor.vue b/client/components/open/forms/components/FormEditor.vue index beafa5a..1a6ac96 100644 --- a/client/components/open/forms/components/FormEditor.vue +++ b/client/components/open/forms/components/FormEditor.vue @@ -161,7 +161,7 @@ export default { showFormErrorModal: false, validationErrorResponse: null, updateFormLoading: false, - createdFormId: null + createdFormSlug: null } }, @@ -176,7 +176,7 @@ export default { } }, createdForm () { - return this.formsStore.getById(this.createdFormId) + return this.formsStore.getBySlug(this.createdFormSlug) }, workspace () { return this.workspacesStore.getCurrent() @@ -278,7 +278,7 @@ export default { this.form.post('/api/open/forms').then((response) => { this.formsStore.addOrUpdate(response.data.form) this.$emit('on-save') - this.createdFormId = response.data.form.id + this.createdFormSlug = response.data.form.slug this.$logEvent('form_created', { form_id: response.data.form.id, form_slug: response.data.form.slug }) this.$crisp.push(['set', 'session:event', [[['form_created', { diff --git a/client/pages/home.vue b/client/pages/home.vue index 0aef45e..271a3f1 100644 --- a/client/pages/home.vue +++ b/client/pages/home.vue @@ -47,9 +47,9 @@