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:
Benedict Aas 2018-05-17 10:40:19 +01:00 committed by GitHub
parent 7782f94daa
commit 93b772f197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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', [])
}
}