Fix resource tree refresh issue (#222)

This commit is contained in:
victor-meng
2020-09-23 13:18:05 -07:00
committed by GitHub
parent 13dafb9581
commit 666a378b3b
3 changed files with 31 additions and 33 deletions

View File

@@ -290,6 +290,10 @@ export default class Database implements ViewModels.Database {
}
private deleteCollectionsFromList(collectionsToRemove: Collection[]): void {
if (collectionsToRemove.length === 0) {
return;
}
const collectionsToKeep: Collection[] = [];
ko.utils.arrayForEach(this.collections(), (collection: Collection) => {