From c84ad546fa9899438a90347de9eb2b7a23568ae4 Mon Sep 17 00:00:00 2001 From: Saksham Arora Date: Wed, 10 Jul 2024 17:38:20 +0200 Subject: [PATCH] frontsite: DocumentItemBody: Don't render none for blank shelf --- .../DocumentDetails/DocumentItems/DocumentItemBody.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/pages/frontsite/Documents/DocumentDetails/DocumentItems/DocumentItemBody.js b/src/lib/pages/frontsite/Documents/DocumentDetails/DocumentItems/DocumentItemBody.js index 9fe782d6f..50a6aab3c 100644 --- a/src/lib/pages/frontsite/Documents/DocumentDetails/DocumentItems/DocumentItemBody.js +++ b/src/lib/pages/frontsite/Documents/DocumentDetails/DocumentItems/DocumentItemBody.js @@ -39,9 +39,9 @@ export default class DocumentItemBody extends Component { - {(shelfLink !== null + {shelfLink !== null ? shelfLink(item, documentDetails) - : _get(item, 'shelf')) || 'none'} + : _get(item, 'shelf')} {this.statusLabel(item)}