diff --git a/console/src/components/Services/Data/TableRelationships/Actions.js b/console/src/components/Services/Data/TableRelationships/Actions.js index 2b2974704bc..fbb9a82a0fe 100644 --- a/console/src/components/Services/Data/TableRelationships/Actions.js +++ b/console/src/components/Services/Data/TableRelationships/Actions.js @@ -47,7 +47,10 @@ const saveRenameRelationship = (oldName, newName, tableName, callback) => { { type: 'rename_relationship', args: { - table: tableName, + table: { + name: tableName, + schema: currentSchema, + }, name: oldName, new_name: newName, }, @@ -57,7 +60,10 @@ const saveRenameRelationship = (oldName, newName, tableName, callback) => { { type: 'rename_relationship', args: { - table: tableName, + table: { + name: tableName, + schema: currentSchema, + }, name: newName, new_name: oldName, },