Set key attr in buffer list items
This commit is contained in:
parent
028c6fd8b3
commit
9d7704ea54
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ export default function BufferList(props) {
|
||||||
return html`
|
return html`
|
||||||
<ul id="buffer-list">
|
<ul id="buffer-list">
|
||||||
${Array.from(this.props.buffers.values()).sort(compareBuffers).map(buf => html`
|
${Array.from(this.props.buffers.values()).sort(compareBuffers).map(buf => html`
|
||||||
<${BufferItem} buffer=${buf} onClick=${() => props.onBufferClick(buf.name)} active=${props.activeBuffer == buf.name}/>
|
<${BufferItem} key=${buf.name} buffer=${buf} onClick=${() => props.onBufferClick(buf.name)} active=${props.activeBuffer == buf.name}/>
|
||||||
`)}
|
`)}
|
||||||
</ul>
|
</ul>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue