fix: changed filter/sort not rendering
This commit is contained in:
parent
cd697de6e1
commit
c9439d1182
@ -150,7 +150,7 @@ onMounted(() => {
|
||||
|
||||
const filters = computed(() => {
|
||||
if (!list.value?.data) return new Set()
|
||||
let allFilters = list.value.data?.params?.filters
|
||||
let allFilters = list.value?.params?.filters || list.value.data?.params?.filters
|
||||
if (!allFilters || !filterableFields.data) return new Set()
|
||||
// remove default filters
|
||||
if (props.default_filters) {
|
||||
|
||||
@ -131,7 +131,7 @@ onMounted(() => {
|
||||
const sortValues = computed({
|
||||
get: () => {
|
||||
if (!list.value?.data) return new Set()
|
||||
let allSortValues = list.value.data?.params?.order_by
|
||||
let allSortValues = list.value?.params?.order_by || list.value.data?.params?.order_by
|
||||
if (!allSortValues || !sortOptions.data) return new Set()
|
||||
if (allSortValues.trim() === 'modified desc') return new Set()
|
||||
allSortValues = allSortValues.split(', ').map((sortValue) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user