Skip to content

Commit

Permalink
fix: issue with duplicate id for different story blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 28, 2021
1 parent 6910937 commit ee3f298
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/blocks/src/BlockContainer/story/StoryBlockContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ export const StoryBlockContainer: FC<StoryBlockContainerAllProps> = ({
data-testid={dataTestid}
title={title}
collapsible={collapsible}
id={userTitle === CURRENT_STORY && story ? story.id : undefined}
id={
userTitle === CURRENT_STORY && story
? `${dataTestid ? `${dataTestid}-` : ''}${story.id}`
: undefined
}
description={description}
plain={true}
{...rest}
Expand Down

0 comments on commit ee3f298

Please sign in to comment.