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
This commit is contained in:
Julien Nahum 2025-02-19 19:10:13 +01:00
parent 28248259be
commit d1902112dd
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
:type="field.type"
/>
<p class="text-sm text-gray-500">
<p class="text-sm text-gray-500" v-if="blocksTypes[field.type]">
{{ blocksTypes[field.type].title }}
</p>