mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
fix: ensure file-picker is slicing arrays (#2350)
We ensure the file-picker is slicing arrays when the localStorage values aren't available. Change-Type: patch
This commit is contained in:
parent
7782f94daa
commit
93b772f197
@ -216,8 +216,8 @@ class RecentFilesUnstyled extends React.PureComponent {
|
||||
super(props)
|
||||
|
||||
this.state = {
|
||||
recents: recentStorage.get('recents'),
|
||||
favorites: recentStorage.get('favorites')
|
||||
recents: recentStorage.get('recents', []),
|
||||
favorites: recentStorage.get('favorites', [])
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user