diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-17 08:47:19 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-17 08:53:45 +0200 |
| commit | 4993dc37e2430067a92ec78389c9d9dce79d19db (patch) | |
| tree | 228127ef4693e85a44243203c69ae58d6a2a3f6a | |
| parent | 0671aa0dd0cd199dc6206ae8b3fb0de114acddfe (diff) | |
fix rich content not rendering stillimage nor links correctly
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 383b29b3..97c51189 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -76,7 +76,7 @@ export default { const renderImage = (tag) => { return <StillImage - {...{ attrs: getAttrs(tag) }} + {...getAttrs(tag)} class="img" /> } @@ -222,7 +222,7 @@ export default { attrs.target = '_blank' const newChildren = [...children].reverse().map(processItemReverse).reverse() - return <a {...{ attrs }}> + return <a {...attrs}> { newChildren } </a> } |
