Update config-editor-card.js

This commit is contained in:
htmltiger 2021-12-05 03:52:14 +00:00 committed by GitHub
parent 3eaf27cd70
commit bca16a62a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,9 +32,8 @@ render() {
<code>#${this.infoLine}</code>
<div>
<button @click="${this.List}">Get List</button>
<select @change=${this.Load} >
<option value=""></option>
${this.fileList.map(value => html`<option ?selected=${value === this.openedFile } value=${value}>${value}</option>`)}
<select @change=${this.Load}>
${[''].concat(this.fileList).map(value => html`<option ?selected=${value === this.openedFile } value=${value}>${value}</option>`)}
</select>
<button @click="${this.Save}">Save</button>
</div>