RepoEditor: Fix reopening the existing file on refresh.
This commit is contained in:
parent
92173ac55c
commit
98b17bc6de
1 changed files with 1 additions and 1 deletions
|
@ -178,8 +178,8 @@ const RepoHelper = {
|
|||
|
||||
setFile(data, file) {
|
||||
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') {
|
||||
newFile.tooLarge = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue