diff --git a/ui/src/app/edge/live/Io/Api_DigitalInput/Io_Api_DigitalInput.ts b/ui/src/app/edge/live/Io/Api_DigitalInput/Io_Api_DigitalInput.ts index b504d531417..43a5b325bd7 100644 --- a/ui/src/app/edge/live/Io/Api_DigitalInput/Io_Api_DigitalInput.ts +++ b/ui/src/app/edge/live/Io/Api_DigitalInput/Io_Api_DigitalInput.ts @@ -29,11 +29,11 @@ export class Io_Api_DigitalInputComponent extends AbstractFlatWidget { } protected override afterIsInitialized(): void { - this.modalComponent = this.getModalComponent(); - this.service.getConfig().then(config => { this.ioComponents = config.getComponentsImplementingNature("io.openems.edge.io.api.DigitalInput").filter(component => component.isEnabled); this.ioComponentCount = this.ioComponents.length; + + this.modalComponent = this.getModalComponent(); }); }