diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-08-22 14:56:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 14:56:07 +0300 |
commit | 89f038c7a0ccf6de94516cba8499a0bc69f8dae1 (patch) | |
tree | 5e6dbd7ae5a9d0ce1b79921b2b44986bb13f1874 /src/components/AttachLink/AttachLink.tsx | |
parent | a42667af463b8c33a38b935b96d39582b543790b (diff) | |
parent | 93319d38e904535ce33a7868b3c1e0a2a4f33d65 (diff) | |
download | which-ui-89f038c7a0ccf6de94516cba8499a0bc69f8dae1.tar.gz |
Merge pull request #93 from which-ecosystem/avatar-uploads
Avatar uploads
Diffstat (limited to 'src/components/AttachLink/AttachLink.tsx')
-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 ( <> |