From 58e30be8f93b3d2a32843ae366da1959f056b127 Mon Sep 17 00:00:00 2001 From: Paul Sarando Date: Fri, 16 Aug 2024 20:00:10 -0700 Subject: [PATCH] Check for null URLs in Notification message links --- src/components/notifications/Message.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/notifications/Message.js b/src/components/notifications/Message.js index 6e059ea30..e7ba6294b 100644 --- a/src/components/notifications/Message.js +++ b/src/components/notifications/Message.js @@ -37,10 +37,12 @@ import RatingWidget from "components/apps/RatingWidget"; function MessageLink(props) { const { message, href, as } = props; - return ( + return href ? ( + ) : ( + message ); } @@ -141,7 +143,7 @@ function DataLink(props) { const href = path && getFolderPage(rootFolderAction ? path : getParentPath(path)); - return href ? : message; + return ; } function TeamLink(props) {