Fix bugs with incorrect currentFileList in the favorite and share by you

view

This was causing bugs when trying to create new template in this views

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-02-03 20:08:08 +01:00 committed by backportbot[bot]
parent a0b80da378
commit 44c9b2de8b

View file

@ -2294,6 +2294,12 @@
this.setFiles(result);
if (this.dirInfo) {
// Make sure the currentFileList is the current one
// When navigating to the favorite or share with you virtual
// folder, this is not correctly set during the initialisation
// otherwise.
OCA.Files.App && OCA.Files.App.updateCurrentFileList(this);
var newFileId = this.dirInfo.id;
// update fileid in URL
var params = {