diff --git a/apps/web/src/components/listview/index.js b/apps/web/src/components/listview/index.js index 32322aa48..40a714323 100644 --- a/apps/web/src/components/listview/index.js +++ b/apps/web/src/components/listview/index.js @@ -20,35 +20,37 @@ function ListView({ type, getItems, menu, button }) { }; }, [getItems, type]); return ( - { - const item = items[index]; - return ( - {}} //TODO - info={ - - - - • - - - {item.type[0].toUpperCase() + item.type.substring(1)} - - - } - menuData={item} - menuItems={menu.menuItems(item)} - dropdownRefs={menu.dropdownRefs} - /> - ); - }} - button={button} - /> + items && ( + { + const item = items[index]; + return ( + {}} //TODO + info={ + + + + • + + + {item.type[0].toUpperCase() + item.type.substring(1)} + + + } + menuData={item} + menuItems={menu.menuItems(item)} + dropdownRefs={menu.dropdownRefs} + /> + ); + }} + button={button} + /> + ) ); }