Commit bfd143b4 authored by Sam Beckham's avatar Sam Beckham Committed by Natalia Tepluhina

Adds discussion to the optimistic design response

This prevents a warning from occouring when we upload a design
parent 0456a43b
---
title: Prevents console warning on design upload
merge_request: 19297
author:
type: fixed
...@@ -114,6 +114,10 @@ export default { ...@@ -114,6 +114,10 @@ export default {
startSha: '', startSha: '',
headSha: '', headSha: '',
}, },
discussions: {
__typename: 'DesignDiscussion',
edges: [],
},
versions: { versions: {
__typename: 'DesignVersionConnection', __typename: 'DesignVersionConnection',
edges: { edges: {
......
...@@ -179,6 +179,10 @@ describe('Design management index page', () => { ...@@ -179,6 +179,10 @@ describe('Design management index page', () => {
startSha: '', startSha: '',
headSha: '', headSha: '',
}, },
discussions: {
__typename: 'DesignDiscussion',
edges: [],
},
versions: { versions: {
__typename: 'DesignVersionConnection', __typename: 'DesignVersionConnection',
edges: { edges: {
......
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