Upgrade relation picker (#8795)
- Rename all parts using the name "relation" to "record" when component is only selecting record - Remove the use of scope states in folder - Rename entities to records This PR prepares the use of the record picker in workflows
This commit is contained in:
@ -52,14 +52,14 @@ export const sortFavorites = (
|
||||
if (isDefined(favorite[relationField.name])) {
|
||||
const relationObject = favorite[relationField.name];
|
||||
|
||||
const relationObjectNameSingular =
|
||||
const objectNameSingular =
|
||||
relationField.relationDefinition?.targetObjectMetadata
|
||||
.nameSingular ?? '';
|
||||
|
||||
const objectRecordIdentifier =
|
||||
getObjectRecordIdentifierByNameSingular(
|
||||
relationObject,
|
||||
relationObjectNameSingular,
|
||||
objectNameSingular,
|
||||
);
|
||||
|
||||
return {
|
||||
@ -75,7 +75,7 @@ export const sortFavorites = (
|
||||
: '',
|
||||
workspaceMemberId: favorite.workspaceMemberId,
|
||||
favoriteFolderId: favorite.favoriteFolderId,
|
||||
objectNameSingular: relationObjectNameSingular,
|
||||
objectNameSingular: objectNameSingular,
|
||||
} as ProcessedFavorite;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user