Get Apollo client with getClient method

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