parent
6aa5991520
commit
e5f8c4e8e8
|
@ -331,7 +331,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, onKe
|
|||
}}
|
||||
onSuccess={({ url, name }) => {
|
||||
let text = innerRef.current.value
|
||||
text = text.replace(`![Uploading ${name}…]()`, `![${name}](${url})`)
|
||||
text = text.replace(`![Uploading ${name}…]()`, `![](${url})`)
|
||||
helpers.setValue(text)
|
||||
const s3Keys = [...text.matchAll(AWS_S3_URL_REGEXP)].map(m => Number(m[1]))
|
||||
updateImageFeesInfo({ variables: { s3Keys } })
|
||||
|
|
Loading…
Reference in New Issue