Skip to content

Commit

Permalink
fix: link when no id prop
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Dec 29, 2020
1 parent 0cc3aca commit 0f1019c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/src/BlockContainer/BlockContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const BlockContainer: FC<BlockContainerProps> = ({
...rest
}) => {
const [isOpen, setIsOpen] = useState(true);
const blockId = id !== '.' ? id : undefined || title;
const blockId = id !== '.' ? id || title : title;
const content = !plain ? (
<Box variant="blockcontainer.inner">{children}</Box>
) : (
Expand Down

0 comments on commit 0f1019c

Please sign in to comment.