fix: error when dragging to sort collections (#5311)

This commit is contained in:
Katherine 2024-09-24 12:51:49 +08:00 committed by GitHub
parent 2107c86c63
commit d399ab334b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,8 +187,8 @@ export const collectionTableSchema: ISchema = {
return { return {
async move(from, to) { async move(from, to) {
await api.resource('collections').move({ await api.resource('collections').move({
sourceId: from.key, sourceId: from.name,
targetId: to.key, targetId: to.name,
}); });
message.success(t('Saved successfully'), 0.2); message.success(t('Saved successfully'), 0.2);
}, },