diff --git a/angular/src/components/icon.component.ts b/angular/src/components/icon.component.ts index 6c82f9c278b..7d4126c081b 100644 --- a/angular/src/components/icon.component.ts +++ b/angular/src/components/icon.component.ts @@ -42,6 +42,10 @@ export class IconComponent implements OnChanges { } async ngOnChanges() { + // Components may be re-used when using cdk-virtual-scroll. Which puts the component in a weird state, + // to avoid this we reset all state variables. + this.image = null; + this.fallbackImage = null; this.imageEnabled = !(await this.stateService.get(ConstantsService.disableFaviconKey)); this.load(); }