fix: refs #8224 handle object values in formatValue function
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
This commit is contained in:
parent
0b40134cfe
commit
a56cdf8053
|
@ -461,8 +461,8 @@ function getOptionLabel(property) {
|
||||||
</template>
|
</template>
|
||||||
<template #selected v-if="valueIsObject && nullishToTrue($attrs['emit-value'])">
|
<template #selected v-if="valueIsObject && nullishToTrue($attrs['emit-value'])">
|
||||||
<span class="nowrap">
|
<span class="nowrap">
|
||||||
<s
|
<span
|
||||||
class="nowrap"
|
class="text-strike"
|
||||||
v-if="modelValue?.neq"
|
v-if="modelValue?.neq"
|
||||||
v-text="getOptionLabel('neq')"
|
v-text="getOptionLabel('neq')"
|
||||||
:title="getOptionLabel('neq')"
|
:title="getOptionLabel('neq')"
|
||||||
|
|
|
@ -186,6 +186,7 @@ async function remove(key) {
|
||||||
function formatValue(value) {
|
function formatValue(value) {
|
||||||
if (typeof value === 'boolean') return value ? t('Yes') : t('No');
|
if (typeof value === 'boolean') return value ? t('Yes') : t('No');
|
||||||
if (isNaN(value) && !isNaN(Date.parse(value))) return toDate(value);
|
if (isNaN(value) && !isNaN(Date.parse(value))) return toDate(value);
|
||||||
|
if (value && typeof value === 'object') return '';
|
||||||
|
|
||||||
return `"${value}"`;
|
return `"${value}"`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue