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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user