Bugfix: on folder rename the old fullName must be removed from cache

This commit is contained in:
the-djmaze 2024-03-17 18:55:07 +01:00
parent 7ae80226d8
commit 195f14ccb8

View file

@ -507,7 +507,7 @@ export class FolderModel extends AbstractModel {
setTimeout(loadFolders, 500);
// TODO: rename all subfolders with folder.delimiter to prevent reload?
} else {
removeFolderFromCacheList(folder.fullName);
removeFolderFromCacheList(oldFullname);
setFolder(folder);
sortFolders(parentFolder ? parentFolder.subFolders : FolderUserStore.folderList);
}