Skip to content

Commit

Permalink
fix: don't show edit link for pending maps (will result in 404)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Apr 9, 2024
1 parent 71ef960 commit 9c9184f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storyMap/components/StoryMapsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const StoryMapListItem = props => {
<RouterLink
id={`story-map-${storyMap.slug}-link`}
to={
storyMap.isPublished
storyMap.isPublished || isPending
? generateStoryMapUrl(storyMap)
: generateStoryMapEditUrl(storyMap)
}
Expand Down

0 comments on commit 9c9184f

Please sign in to comment.