Commit e7ee6823 authored by mgandres's avatar mgandres

Fix fetch policy in pipeline editor branch switcher

The typo in the fetch policy leads to several bugs in the branch
switcher of the pipeline editor. This should fix the following bugs:
- branch name in commit form not being updated when user switches
branches
- fetching outdated content even if changes were committed in the branch

Changelog: fixed
parent 6db20760
......@@ -56,7 +56,7 @@ export default {
apollo: {
initialCiFileContent: {
fetchPolicy: fetchPolicies.NETWORK,
fetchPolicy: fetchPolicies.NETWORK_ONLY,
query: getBlobContent,
// If it's a brand new file, we don't want to fetch the content.
// Then when the user commits the first time, the query would run
......
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