Get Apollo client with getClient method

parent 2255b995
......@@ -43,7 +43,7 @@ export default {
validations: { nodes = [] },
},
}) {
const store = this.$apolloProvider.defaultClient;
const store = this.$apollo.getClient();
nodes.forEach(({ normalizedTargetUrl, status }) => {
updateSiteProfilesStatuses({
fullPath: this.fullPath,
......@@ -112,7 +112,7 @@ export default {
fullPath: this.fullPath,
normalizedTargetUrl,
status: PENDING,
store: this.$apolloProvider.defaultClient,
store: this.$apollo.getClient(),
});
},
},
......
......@@ -181,7 +181,7 @@ describe('EE - DastSiteProfileList', () => {
fullPath: defaultProps.fullPath,
normalizedTargetUrl,
status,
store: wrapper.vm.$apolloProvider.defaultClient,
store: wrapper.vm.$apollo.getClient(),
});
},
);
......
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