Prevent system-filter from crashing on unknown field

This commit is contained in:
rijkvanzanten
2021-11-11 14:35:46 -05:00
parent 23534c8662
commit c0ea45fa05

View File

@@ -20,7 +20,7 @@
<input-component
:is="interfaceType"
:choices="choices"
:type="fieldInfo.type"
:type="fieldInfo?.type ?? 'unknown'"
:value="value"
@input="value = $event"
/>
@@ -34,7 +34,7 @@
<div v-for="(val, index) in value" :key="index" class="value">
<input-component
:is="interfaceType"
:type="fieldInfo.type"
:type="fieldInfo?.type ?? 'unknown'"
:value="val"
:focus="false"
:choices="choices"
@@ -47,7 +47,7 @@
<input-component
:is="interfaceType"
:choices="choices"
:type="fieldInfo.type"
:type="fieldInfo?.type ?? 'unknown'"
:value="value[0]"
@input="setValueAt(0, $event)"
/>
@@ -55,7 +55,7 @@
<input-component
:is="interfaceType"
:choices="choices"
:type="fieldInfo.type"
:type="fieldInfo?.type ?? 'unknown'"
:value="value[1]"
@input="setValueAt(1, $event)"
/>