From 48bc69a3c7f6e14e07270e89a51612c03c90787f Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Tue, 9 Apr 2024 17:10:59 -0400 Subject: [PATCH] fix: better handle unpublished drafts that are pending (no link should be showsn) --- src/storyMap/components/StoryMapsCard.js | 29 ++++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/src/storyMap/components/StoryMapsCard.js b/src/storyMap/components/StoryMapsCard.js index 2b76d6e91..931eb586f 100644 --- a/src/storyMap/components/StoryMapsCard.js +++ b/src/storyMap/components/StoryMapsCard.js @@ -165,16 +165,25 @@ const StoryMapListItem = props => { )} - - {storyMap.title} - + {/* + Unpublished drafts you have not accepted get no link, as it would 404. + Published and not accepted get a view link. + Published and accepted get an edit link. + */} + {!storyMap.isPublished && isPending ? ( + storyMap.title + ) : ( + + {storyMap.title} + + )}