From 5bc0d3ccc821a35a02cfbf53423ac33d45003c9c Mon Sep 17 00:00:00 2001 From: Chirag Chhatrala <60499540+chiragchhatrala@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:22:03 +0530 Subject: [PATCH] fix mobile editor email (#660) --- client/components/open/forms/components/FormEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/open/forms/components/FormEditor.vue b/client/components/open/forms/components/FormEditor.vue index 23e80e41..11273a10 100644 --- a/client/components/open/forms/components/FormEditor.vue +++ b/client/components/open/forms/components/FormEditor.vue @@ -150,7 +150,7 @@ export default { const breakpoints = useBreakpoints(breakpointsTailwind) const isVisible = ref(breakpoints.smaller("md")) watch(isVisible, (newValue) => { - if (newValue) { + if (newValue && form?.value && form?.value?.id) { opnFetch('/open/forms/' + form.value.id + '/mobile-editor-email') } })