Skip to content

Commit

Permalink
Merge pull request #30995 from nextcloud/fix/currentFileList-is-incor…
Browse files Browse the repository at this point in the history
…rect-favorite-share-with-you

Fix bugs with incorrect currentFileList in the favorite and share by you view
  • Loading branch information
szaimen authored Feb 7, 2022
2 parents e0dc826 + ebec0a6 commit bb55b79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit bb55b79

Please sign in to comment.