diff options
Diffstat (limited to 'src/components/AttachLink')
| -rw-r--r-- | src/components/AttachLink/AttachLink.tsx | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/AttachLink/AttachLink.tsx b/src/components/AttachLink/AttachLink.tsx index e73f5c1..742ba65 100644 --- a/src/components/AttachLink/AttachLink.tsx +++ b/src/components/AttachLink/AttachLink.tsx @@ -25,7 +25,7 @@ const AttachLink: React.FC<PropTypes> = ({ callback, children }) => {      </Button>    ); -  const child = children && React.Children.toArray(children)[0]; +  const child = children && React.Children.only(children);    return (      <>  |