Remove unnecessary config check.

This used to be valid when expanded state lived in the db config, but it's now stored in workspace storage.
This commit is contained in:
Charis Kyriakou
2023-01-04 09:28:16 +00:00
parent 4db3cd6b1b
commit a82f40fb1e

View File

@@ -67,11 +67,6 @@ export class DbManager {
dbItem: DbItem,
itemExpanded: boolean,
): Promise<void> {
const configResult = this.dbConfigStore.getConfig();
if (configResult.isFailure) {
throw Error("Cannot update expanded state if config is not loaded");
}
const currentExpandedItems = this.getExpandedItems();
const newExpandedItems = updateItemInExpandedState(