skip to Main Content

ReactJS: No data returned on screen

I have the following: {Object.keys(categorizedDataFoods2).map((key, index) => { const uniquePackingLocationsF = [...new Set(categorizedDataFoods2[key]?.items.sort((a, b) => a.packingLocation.localeCompare(b.packingLocation)).map(item => item.packingLocation))]; {uniquePackingLocationsF.map((location) => { const filteredItemsF = categorizedDataFoods2[key]?.items.filter(item => item.packingLocation === location); return ( <Table className="finallist" key={location}> <TableHead> <TableRow> <TableCell><b style={{textTransform:'uppercase'}}>FOOD</b></TableCell> <TableCell></TableCell> </TableRow>…

VIEW QUESTION
Back To Top
Search