Remove unnecessary async

This commit is contained in:
ekzyis 2023-10-25 20:34:56 +02:00
parent 8890517f40
commit af7cbd0846

View File

@ -247,7 +247,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, onKe
text += `![Uploading ${file.name}…]()` text += `![Uploading ${file.name}…]()`
helpers.setValue(text) helpers.setValue(text)
}} }}
onSuccess={async ({ url, name }) => { onSuccess={({ url, name }) => {
let text = innerRef.current.value let text = innerRef.current.value
text = text.replace(`![Uploading ${name}…]()`, `![${name}](${url})`) text = text.replace(`![Uploading ${name}…]()`, `![${name}](${url})`)
helpers.setValue(text) helpers.setValue(text)