feat: remove props destructuring from SingleTaskInlineReadonly
This commit is contained in:
parent
bd32f7aef5
commit
7c9f0b8ada
@ -113,17 +113,16 @@ import {formatDateSince, formatISO, formatDateLong} from '@/helpers/time/formatD
|
|||||||
import {useProjectStore} from '@/stores/projects'
|
import {useProjectStore} from '@/stores/projects'
|
||||||
import AssigneeList from '@/components/tasks/partials/AssigneeList.vue'
|
import AssigneeList from '@/components/tasks/partials/AssigneeList.vue'
|
||||||
|
|
||||||
const {
|
const props = withDefaults(defineProps<{
|
||||||
task,
|
|
||||||
showProject = false,
|
|
||||||
} = defineProps<{
|
|
||||||
task: ITask,
|
task: ITask,
|
||||||
showProject?: boolean,
|
showProject?: boolean,
|
||||||
}>()
|
}>(), {
|
||||||
|
showProject: false,
|
||||||
|
})
|
||||||
|
|
||||||
const projectStore = useProjectStore()
|
const projectStore = useProjectStore()
|
||||||
|
|
||||||
const project = computed(() => projectStore.projects[task.projectId])
|
const project = computed(() => projectStore.projects[props.task.projectId])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user