Commit 53b3ad5f authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'acet-repo-editor-fix-reopening-existing-file' into 'master'

RepoEditor: Fix reopening the existing file on refresh.

Closes #38250

See merge request gitlab-org/gitlab-ce!14449
parents 2d93ff94 98b17bc6
...@@ -178,8 +178,8 @@ const RepoHelper = { ...@@ -178,8 +178,8 @@ const RepoHelper = {
setFile(data, file) { setFile(data, file) {
const newFile = data; const newFile = data;
newFile.url = file.url || Service.url; // Grab the URL from service, happens on page refresh.
newFile.url = file.url;
if (newFile.render_error === 'too_large' || newFile.render_error === 'collapsed') { if (newFile.render_error === 'too_large' || newFile.render_error === 'collapsed') {
newFile.tooLarge = true; newFile.tooLarge = true;
} }
......
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