1
0

fix(project): make sure the correct tasks are loaded when switching between projects

Resolves https://community.vikunja.io/t/filter-table-view-not-sorting/1416/3
This commit is contained in:
kolaente
2023-06-28 14:38:10 +02:00
parent 66bad4b2b1
commit ac6c4cf2bc
3 changed files with 8 additions and 7 deletions

View File

@ -168,7 +168,7 @@ const {
searchTerm,
params,
sortByParam,
} = useTaskList(projectId, {position: 'asc' })
} = useTaskList(() => projectId, {position: 'asc' })
const isAlphabeticalSorting = computed(() => {

View File

@ -231,7 +231,7 @@ const SORT_BY_DEFAULT: SortBy = {
const activeColumns = useStorage('tableViewColumns', {...ACTIVE_COLUMNS_DEFAULT})
const sortBy = useStorage<SortBy>('tableViewSortBy', {...SORT_BY_DEFAULT})
const taskList = useTaskList(projectId, sortBy.value)
const taskList = useTaskList(() => projectId, sortBy.value)
const {
loading,