mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 10:16:32 +00:00
minifix(GUI): resolve react missing key field warning (#2354)
We attach key fields where necessary to make the warnings go away. Change-Type: patch
This commit is contained in:
parent
3083f5fd55
commit
ce2534c5b7
@ -317,6 +317,7 @@ const Breadcrumbs = styled((props) => {
|
||||
_.map(dirs.slice(-MAX_DIR_CRUMBS), (dir, index) => {
|
||||
return (
|
||||
<rendition.Button
|
||||
key={ dir.fullpath }
|
||||
onClick={ () => props.selectFile(dir) }
|
||||
plaintext={ true }>
|
||||
<rendition.Txt bold={ index === dirs.length - 1 }>
|
||||
@ -427,6 +428,7 @@ class FileSelector extends React.PureComponent {
|
||||
items.map((item, index) => {
|
||||
return (
|
||||
<FileLink { ...item }
|
||||
key={ item.fullpath }
|
||||
highlight={ _.get(this.state.highlighted, 'fullpath') === _.get(item, 'fullpath') }
|
||||
onClick={ () => this.setState({ highlighted: item }) }
|
||||
onDoubleClick={ _.partial(this.selectFile, item) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user