Skip to content

Commit

Permalink
frontsite: DocumentItemBody: Don't render none for blank shelf
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 authored and kpsherva committed Jul 12, 2024
1 parent 7a677ae commit c84ad54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default class DocumentItemBody extends Component {
</Table.Cell>

<Table.Cell data-label="Shelf" className="document-item-table-itemCell">
{(shelfLink !== null
{shelfLink !== null
? shelfLink(item, documentDetails)
: _get(item, 'shelf')) || 'none'}
: _get(item, 'shelf')}
</Table.Cell>

<Table.Cell data-label="Status">{this.statusLabel(item)}</Table.Cell>
Expand Down

0 comments on commit c84ad54

Please sign in to comment.