Commit d51d741f authored by Dave Pisek's avatar Dave Pisek

Reviewer feedback: Use fetchPolicies constant

Uses `fetchPolicies` from `~/lib/graphql` instead of a hard-coded
string.
parent 1f39de01
......@@ -2,6 +2,7 @@
import fetchHeaderVulnerabilityQuery from 'ee/security_dashboard/graphql/header_vulnerability.graphql';
import { convertToGraphQLId } from '~/graphql_shared/utils';
import { TYPE_VULNERABILITY } from '~/graphql_shared/constants';
import { fetchPolicies } from '~/lib/graphql';
import { s__ } from '~/locale';
import createFlash from '~/flash';
import { normalizeGraphQLVulnerability } from '../helpers';
......@@ -38,7 +39,7 @@ export default {
vulnerability: {
manual: true,
query: fetchHeaderVulnerabilityQuery,
fetchPolicy: 'no-cache',
fetchPolicy: fetchPolicies.NO_CACHE,
variables() {
return {
id: convertToGraphQLId(TYPE_VULNERABILITY, this.vulnerability.id),
......
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