Fix expanded bug when renaming lists

This commit is contained in:
Nora
2023-01-11 15:41:30 +00:00
parent c36da4ba7e
commit ba830dd2e5

View File

@@ -82,10 +82,16 @@ export class DbManager {
}
public async removeDbItemFromExpandedState(dbItem: DbItem): Promise<void> {
// When collapsing or expanding a list we clean up the expanded state and remove
// all items that don't exist anymore.
await this.updateDbItemExpandedState(dbItem, false);
}
public async addDbItemToExpandedState(dbItem: DbItem): Promise<void> {
// When collapsing or expanding a list we clean up the expanded state and remove
// all items that don't exist anymore.
await this.updateDbItemExpandedState(dbItem, true);
}
@@ -133,7 +139,7 @@ export class DbManager {
newDbItem,
);
await this.updateExpandedItems(newExpandedItems);
await this.setExpandedItems(newExpandedItems);
}
public async renameLocalDb(