diff options
author | Phil Hughes <me@iamphill.com> | 2018-07-26 11:34:05 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-07-26 11:34:05 +0300 |
commit | 832dcd6c90a1ca55d8eacd50ba56916e8923b76e (patch) | |
tree | 59dd0921be66dcb4b261a9017ac19089618336f8 /app/assets | |
parent | 4fd6b5bc663bcaf1c4f0c9efac12e7110f7a912f (diff) |
Fixed IDE not opening JSON files
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/ide/services/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/ide/services/index.js b/app/assets/javascripts/ide/services/index.js index 49a481f25d5..cb93fba1665 100644 --- a/app/assets/javascripts/ide/services/index.js +++ b/app/assets/javascripts/ide/services/index.js @@ -18,7 +18,7 @@ export default { return axios .get(file.rawPath, { - params: { format: 'json' }, + transformResponse: [f => f], }) .then(({ data }) => data); }, @@ -33,7 +33,7 @@ export default { return axios .get(file.rawPath.replace(`/raw/${file.branchId}/${file.path}`, `/raw/${sha}/${file.path}`), { - params: { format: 'json' }, + transformResponse: [f => f], }) .then(({ data }) => data); }, |