mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 16:52:18 +00:00
RelationInputWrapper: Replace mock TODOs
This commit is contained in:
parent
7fad018e60
commit
0fb81faed1
@ -151,14 +151,12 @@ export const RelationInputWrapper = ({
|
|||||||
}}
|
}}
|
||||||
relations={normalizeRelations(relations, {
|
relations={normalizeRelations(relations, {
|
||||||
modifiedData: modifiedData?.[name],
|
modifiedData: modifiedData?.[name],
|
||||||
// TODO: Remove mock title
|
mainFieldName: mainField.name,
|
||||||
mainFieldName: 'title' || mainField.name,
|
|
||||||
shouldAddLink: shouldDisplayRelationLink,
|
shouldAddLink: shouldDisplayRelationLink,
|
||||||
targetModel,
|
targetModel,
|
||||||
})}
|
})}
|
||||||
searchResults={normalizeRelations(search, {
|
searchResults={normalizeRelations(search, {
|
||||||
// TODO: Remove mock title
|
mainFieldName: mainField.name,
|
||||||
mainFieldName: 'title' || mainField.name,
|
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user