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:
parent
28248259be
commit
d1902112dd
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue