Commit 4d6dc20d authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'fix-design-management-gql-warnings' into 'master'

Fix GraphQL console warnings when uploading a design

Closes #202292

See merge request gitlab-org/gitlab!24657
parents 1888b8a4 473af495
...@@ -83,6 +83,8 @@ export const designUploadOptimisticResponse = files => { ...@@ -83,6 +83,8 @@ export const designUploadOptimisticResponse = files => {
designManagementUpload: { designManagementUpload: {
__typename: 'DesignManagementUploadPayload', __typename: 'DesignManagementUploadPayload',
designs, designs,
skippedDesigns: [],
errors: [],
}, },
}; };
}; };
......
...@@ -218,6 +218,8 @@ describe('Design management index page', () => { ...@@ -218,6 +218,8 @@ describe('Design management index page', () => {
}, },
}, },
], ],
skippedDesigns: [],
errors: [],
}, },
}, },
}; };
......
...@@ -98,6 +98,8 @@ describe('optimistic responses', () => { ...@@ -98,6 +98,8 @@ describe('optimistic responses', () => {
}, },
}, },
], ],
errors: [],
skippedDesigns: [],
}, },
}; };
expect(designUploadOptimisticResponse([{ name: 'test' }])).toEqual(expectedResponse); expect(designUploadOptimisticResponse([{ name: 'test' }])).toEqual(expectedResponse);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment