I'm maping from props to 'lawList', but the array contains alot of nullValues that i wish to prevent.
{props.map((lawList, index) => (
<Table.Body key={index}>
<Table.Row>
<Table.Cell>{index + 1}</Table.Cell>
<Table.Cell>{lawList.lawDTO.name}</Table.Cell>
<Table.Cell>{lawList.text}</Table.Cell>
<Table.Cell>{lawList.status}</Table.Cell>
<Table.Cell>
{new Date(lawList.latestRevisionDate).toISOString().substring(0, 10)}
</Table.Cell>
<Table.Cell>placeholder</Table.Cell>
</Table.Row>
</Table.Body>
))}
Any suggestions on how i can remove all null values from the 'lawList' ?