From d08c7833eea8da4ef595b1a8fb6ec85b00cbb584 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 15 Feb 2023 14:22:37 +0800 Subject: [PATCH] fix: collection categories need to be sorted --- .../plugins/collection-manager/src/collections/collections.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/collection-manager/src/collections/collections.ts b/packages/plugins/collection-manager/src/collections/collections.ts index b3d52dc87..f83eb77ff 100644 --- a/packages/plugins/collection-manager/src/collections/collections.ts +++ b/packages/plugins/collection-manager/src/collections/collections.ts @@ -60,6 +60,7 @@ export default { foreignKey: 'collectionName', otherKey: 'categoryId', targetKey: 'id', + sortBy: 'sort', through: 'collectionCategory', }, ],