chore: don't use ref when not nessecary
This commit is contained in:
parent
79e332e518
commit
cf67edb4a6
1 changed files with 3 additions and 3 deletions
|
@ -75,9 +75,9 @@ const props = defineProps({
|
||||||
const showTasksWithoutDates = ref(false)
|
const showTasksWithoutDates = ref(false)
|
||||||
const precision = ref('day')
|
const precision = ref('day')
|
||||||
|
|
||||||
const now = ref(new Date())
|
const now = new Date()
|
||||||
const defaultFrom = format(new Date((new Date()).setDate(now.value.getDate() - 15)), 'yyyy-LL-dd')
|
const defaultFrom = format(new Date((new Date()).setDate(now.getDate() - 15)), 'yyyy-LL-dd')
|
||||||
const defaultTo = format(new Date((new Date()).setDate(now.value.getDate() + 55)), 'yyyy-LL-dd')
|
const defaultTo = format(new Date((new Date()).setDate(now.getDate() + 55)), 'yyyy-LL-dd')
|
||||||
const range = ref(`${defaultFrom} to ${defaultTo}`)
|
const range = ref(`${defaultFrom} to ${defaultTo}`)
|
||||||
|
|
||||||
// TODO: only update once both dates are available (maybe use a watcher + refs instead?)
|
// TODO: only update once both dates are available (maybe use a watcher + refs instead?)
|
||||||
|
|
Loading…
Reference in a new issue