chore: put computed in one line
This commit is contained in:
parent
3bc0b29453
commit
7e80de81f7
|
@ -29,9 +29,7 @@ const props = defineProps({
|
||||||
})
|
})
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const list = computed(() => {
|
const list = computed(() => store.getters['lists/getListById'](props.listId))
|
||||||
return store.getters['lists/getListById'](props.listId)
|
|
||||||
})
|
|
||||||
const htmlDescription = computed(() => {
|
const htmlDescription = computed(() => {
|
||||||
const description = list.value?.description || ''
|
const description = list.value?.description || ''
|
||||||
if (description === '') {
|
if (description === '') {
|
||||||
|
|
Reference in New Issue
Block a user