From d1902112dd60b8b423682388f28206cdadf57c0b Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Wed, 19 Feb 2025 19:10:13 +0100 Subject: [PATCH] Add null check for block type in FormFieldEdit component - Prevent potential errors when displaying field type information - Add conditional rendering to handle cases where block type might be undefined --- client/components/open/forms/fields/FormFieldEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/open/forms/fields/FormFieldEdit.vue b/client/components/open/forms/fields/FormFieldEdit.vue index b751a225..156f7b5a 100644 --- a/client/components/open/forms/fields/FormFieldEdit.vue +++ b/client/components/open/forms/fields/FormFieldEdit.vue @@ -24,7 +24,7 @@ :type="field.type" /> -

+

{{ blocksTypes[field.type].title }}