Commit 4d24c46e authored by BojanSovticEngIT's avatar BojanSovticEngIT
Browse files

Bugfix KNOWAGE-7109

parent caac93af
......@@ -125,7 +125,7 @@
<div class="p-d-flex p-flex-row">
<i class="pi pi-external-link kn-cursor-pointer p-mr-2" @click="openPopupDialog(parameter)"></i>
<ScrollPanel class="lookupScrollPanel">
<Chip class="parameterValueChip" v-for="(parameterValue, index) in parameter.parameterValue" :key="index">{{ parameterValue.description }}</Chip>
<Chip class="parameterValueChip" v-for="(parameterValue, index) in parameter.parameterValue" :key="index">{{ parameterValue.description ?? parameterValue.value }}</Chip>
</ScrollPanel>
</div>
</div>
......@@ -144,7 +144,7 @@
<div class="p-d-flex p-flex-row">
<i class="pi pi-external-link kn-cursor-pointer p-mr-2" @click="openTreeDialog(parameter)"></i>
<div>
<Chip v-for="(parameterValue, index) in parameter.parameterValue" :key="index">{{ parameterValue.description }}</Chip>
<Chip v-for="(parameterValue, index) in parameter.parameterValue" :key="index">{{ parameterValue.description ?? parameterValue.value }}</Chip>
</div>
</div>
</div>
......@@ -436,7 +436,7 @@ export default defineComponent({
Object.keys(this.parameters.filterStatus).forEach((key: any) => {
const parameter = this.parameters.filterStatus[key]
if (!parameter.multivalue) {
parameters.push({ label: parameter.label, value: parameter.parameterValue[0].value, description: parameter.parameterValue[0].description })
parameters.push({ label: parameter.label, value: parameter.parameterValue[0].value, description: parameter.parameterValue[0].description ?? '' })
} else {
parameters.push({ label: parameter.label, value: parameter.parameterValue?.map((el: any) => el.value), description: parameter.parameterDescription ?? '' })
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment