Should not have added the check

This commit is contained in:
Sandeep Somavarapu 2018-11-16 16:58:58 +01:00
parent 6e8123a10b
commit f8a3d948c2

View file

@ -349,7 +349,6 @@ export class ActivitybarPart extends Part {
const viewContainerRegistry = Registry.as<IViewContainersRegistry>(ViewContainerExtensions.ViewContainersRegistry);
const state: ISerializedPlaceholderComposite[] = [];
for (const { id, iconUrl } of this.viewletService.getAllViewlets()) {
if (iconUrl) {
const viewContainer = viewContainerRegistry.get(id);
const whens: string[] = [];
if (viewContainer) {
@ -361,7 +360,6 @@ export class ActivitybarPart extends Part {
}
state.push({ id, iconUrl, whens });
}
}
this.storageService.store(ActivitybarPart.PLACEHOLDER_VIEWLETS, JSON.stringify(state), StorageScope.GLOBAL);
super.saveState();