From 8efa83efd6e72273ea8305a067b74482dbfca77f Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Tue, 18 Aug 2020 17:28:10 -0600 Subject: [PATCH] Return sort field from correct location in use collection composable --- app/src/composables/use-collection/use-collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/composables/use-collection/use-collection.ts b/app/src/composables/use-collection/use-collection.ts index 3c3089a4cf..99c371f2a6 100644 --- a/app/src/composables/use-collection/use-collection.ts +++ b/app/src/composables/use-collection/use-collection.ts @@ -33,7 +33,7 @@ export function useCollection(collectionKey: string | Ref) { }); const sortField = computed(() => { - return fields.value?.find((field) => field.meta?.special === 'sort') || null; + return info.value?.meta?.sort_field || null; }); type Status = {