RepoEditor: Fix reopening the existing file on refresh.

This commit is contained in:
Fatih Acet 2017-09-22 18:00:32 +03:00
parent 92173ac55c
commit 98b17bc6de
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}