fix: correctly send filter values
This commit is contained in:
parent
6d6f2b4e33
commit
eeee1c842a
1 changed files with 6 additions and 6 deletions
|
@ -124,16 +124,16 @@ const userAuthenticated = computed(() => store.state.auth.authenticated)
|
||||||
const loading = computed(() => store.state[LOADING] && store.state[LOADING_MODULE] === 'tasks')
|
const loading = computed(() => store.state[LOADING] && store.state[LOADING_MODULE] === 'tasks')
|
||||||
|
|
||||||
interface dateStrings {
|
interface dateStrings {
|
||||||
from: string,
|
dateFrom: string,
|
||||||
to: string,
|
dateTo: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDate({from, to}: dateStrings) {
|
function setDate(dates: dateStrings) {
|
||||||
router.push({
|
router.push({
|
||||||
name: route.name as string,
|
name: route.name as string,
|
||||||
query: {
|
query: {
|
||||||
from: from ?? dateFrom,
|
from: dates.dateFrom ?? dateFrom,
|
||||||
to: to ?? dateTo,
|
to: dates.dateTo ?? dateTo,
|
||||||
showOverdue: showOverdue.value ? 'true' : 'false',
|
showOverdue: showOverdue.value ? 'true' : 'false',
|
||||||
showNulls: showNulls.value ? 'true' : 'false',
|
showNulls: showNulls.value ? 'true' : 'false',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue