Remove unnecessary async
This commit is contained in:
parent
8890517f40
commit
af7cbd0846
@ -247,7 +247,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, onKe
|
||||
text += `![Uploading ${file.name}…]()`
|
||||
helpers.setValue(text)
|
||||
}}
|
||||
onSuccess={async ({ url, name }) => {
|
||||
onSuccess={({ url, name }) => {
|
||||
let text = innerRef.current.value
|
||||
text = text.replace(`![Uploading ${name}…]()`, ``)
|
||||
helpers.setValue(text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user