Files
FEDEO/frontend/components/columnRenderings/description.vue
florianfederspiel 52c182cb5f
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 3m8s
Build and Push Docker Images / build-frontend (push) Successful in 1m15s
Fixes
2026-03-04 20:44:19 +01:00

26 lines
575 B
Vue

<script setup>
const props = defineProps({
row: {
type: Object,
required: true,
default: {}
}
})
const descriptionText = computed(() => {
const description = props.row?.description
if (!description) return ""
if (typeof description === "string") return description
if (typeof description === "object") {
if (typeof description.text === "string" && description.text.trim().length) {
return description.text
}
}
return String(description)
})
</script>
<template>
<div v-if="descriptionText">{{ descriptionText }}</div>
</template>