Fixed: Prevent Bookshelf error if items is undefined

This commit is contained in:
Qstick 2021-01-30 13:14:30 -05:00
parent 7cc9a67b74
commit 8adf67ed5a

View file

@ -16,7 +16,7 @@ function createMapStateToProps() {
...otherState
} = bookshelves;
return ({
helptext: items.helptext && items.helptext[name] ? items.helptext[name] : '',
helptext: items && items.helptext && items.helptext[name] ? items.helptext[name] : '',
user: items && items.user ? items.user : '',
items: items && items.shelves ? items.shelves : [],
...otherState