diff --git a/components/shared/List.vue b/components/shared/List.vue index 8bb5fca..40b2348 100644 --- a/components/shared/List.vue +++ b/components/shared/List.vue @@ -112,7 +112,7 @@ const years = ref>([]); const pagination = ref({ page: 0, pageSize: 0, pageCount: 0, total: 0 }); const activeYear = ref(0); -if (props.data?.lookup.list_with_date) { +if (props.data?.lookup.list_with_date != "none") { const { data: year } = await useAsyncData>("distinct-years", () => $fetch(`${baseUrl}/api/custom/${props.data?.lookup.collection}/distinct-years`) ); @@ -121,7 +121,7 @@ if (props.data?.lookup.list_with_date) { } const { data: collections } = await useAsyncData("collection", () => find(props.data?.lookup.collection ?? "", { - ...(props.data?.lookup?.list_with_date + ...(props.data?.lookup?.list_with_date != "none" ? { sort: "date:desc", filters: {