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:
@ -168,7 +168,7 @@ const {
|
||||
searchTerm,
|
||||
params,
|
||||
sortByParam,
|
||||
} = useTaskList(projectId, {position: 'asc' })
|
||||
} = useTaskList(() => projectId, {position: 'asc' })
|
||||
|
||||
|
||||
const isAlphabeticalSorting = computed(() => {
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user