diff --git a/src/server_manager/web_app/ui_components/outline-server-list.ts b/src/server_manager/web_app/ui_components/outline-server-list.ts index 785e8fb9..ac50ecf9 100644 --- a/src/server_manager/web_app/ui_components/outline-server-list.ts +++ b/src/server_manager/web_app/ui_components/outline-server-list.ts @@ -50,7 +50,8 @@ export class OutlineServerList extends LitElement { } // We need to wait updates to be completed or the view may not yet be there. await this.updateComplete; - return this.shadowRoot.querySelector(`#${this.makeViewId(serverId)}`); + const selector = `#${this.makeViewId(serverId)}`; + return this.shadowRoot.querySelector(selector); } // Wrapper to encode a string in base64. This is necessary to set the server view IDs to