Minor cleanup

This commit is contained in:
Vinicius Fortuna 2021-03-25 11:40:21 -04:00
parent fa7acacc36
commit a7bec09ffa

View file

@ -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<ServerView>(`#${this.makeViewId(serverId)}`);
const selector = `#${this.makeViewId(serverId)}`;
return this.shadowRoot.querySelector<ServerView>(selector);
}
// Wrapper to encode a string in base64. This is necessary to set the server view IDs to