Set the filemodel before rending the detailsview
fixes #10934 Else it triggers the rendering two times. Resulting is weird state in for example the comments. Because the comments for OLD_FILEID are retrieved but then the model is changed to NEW_FILEID. But the old comments still get in and get parsed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
9d89f8bbac
commit
b1fd72c1cf
1 changed files with 1 additions and 1 deletions
|
@ -576,8 +576,8 @@
|
|||
}
|
||||
|
||||
this._currentFileModel = model;
|
||||
this._detailsView.render();
|
||||
this._detailsView.setFileInfo(model);
|
||||
this._detailsView.render();
|
||||
this._detailsView.$el.scrollTop(0);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue