Commit 8bb13575 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch...

Merge branch '325675-replace-writedata-with-writequery-in-app-assets-javascripts-design_management-index-js' into 'master'

Replace `writeData` in Design Management app

See merge request gitlab-org/gitlab!57340
parents 401c77ab 63ff4aa4
import Vue from 'vue'; import Vue from 'vue';
import App from './components/app.vue'; import App from './components/app.vue';
import apolloProvider from './graphql'; import apolloProvider from './graphql';
import activeDiscussionQuery from './graphql/queries/active_discussion.query.graphql';
import createRouter from './router'; import createRouter from './router';
export default () => { export default () => {
...@@ -8,7 +9,8 @@ export default () => { ...@@ -8,7 +9,8 @@ export default () => {
const { issueIid, projectPath, issuePath } = el.dataset; const { issueIid, projectPath, issuePath } = el.dataset;
const router = createRouter(issuePath); const router = createRouter(issuePath);
apolloProvider.clients.defaultClient.cache.writeData({ apolloProvider.clients.defaultClient.cache.writeQuery({
query: activeDiscussionQuery,
data: { data: {
activeDiscussion: { activeDiscussion: {
__typename: 'ActiveDiscussion', __typename: 'ActiveDiscussion',
......
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