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:
@@ -24,7 +24,7 @@
|
|||||||
:type="field.type"
|
: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 }}
|
{{ blocksTypes[field.type].title }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user