Merge pull request #14089 from strapi/feature/relations-main-view-relation-query-info

CM: Pass queryInfos to Inputs, to have it available for relations
This commit is contained in:
Gustav Hansen 2022-08-12 14:49:39 +02:00 committed by GitHub
commit a128d0d7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,14 @@ const EditView = ({
return (
<Grid gap={4} key={gridIndex}>
{grid.map(
({ fieldSchema, labelAction, metadatas, name, size }) => {
({
fieldSchema,
labelAction,
metadatas,
name,
size,
queryInfos,
}) => {
const isComponent = fieldSchema.type === 'component';
if (isComponent) {
@ -205,6 +212,7 @@ const EditView = ({
keys={name}
labelAction={labelAction}
metadatas={metadatas}
queryInfos={queryInfos}
/>
</GridItem>
);