Skip to content
Snippets Groups Projects
Commit 96f4ba6a authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix feature attributes not displayed when null value

parent 4f3929c9
No related branches found
No related tags found
No related merge requests found
......@@ -13,11 +13,13 @@
<FeatureTypeLink :feature-type="featureType" />
</td>
</tr>
{{ currentFeature.feature_data }}
<tr
v-for="(field, index) in currentFeature.feature_data"
:key="'field' + index"
>
<td>
{{ field }}
<strong
:class="{ required: isRequired(field) }"
>
......@@ -47,7 +49,7 @@
{{ field.value.join(', ') }}
</span>
<span v-else>
{{ field.value.label ? field.value.label : field.value }}
{{ field.value && field.value.label ? field.value.label : field.value }}
</span>
</strong>
</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment