From d399ab334bad81f6656f3841ec8a49f3438d134c Mon Sep 17 00:00:00 2001 From: Katherine Date: Tue, 24 Sep 2024 12:51:49 +0800 Subject: [PATCH] fix: error when dragging to sort collections (#5311) --- .../Configuration/schemas/collections.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts index 56dbb6a9b8..6811412cb4 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/MainDataSourceManager/Configuration/schemas/collections.ts @@ -187,8 +187,8 @@ export const collectionTableSchema: ISchema = { return { async move(from, to) { await api.resource('collections').move({ - sourceId: from.key, - targetId: to.key, + sourceId: from.name, + targetId: to.name, }); message.success(t('Saved successfully'), 0.2); },